Infinispan uses a class bridge to map random structures into a fixed but generic entity (usually an entity containing a map).
It is a placeholder waiting for Hibernate Search to offer mapping beyond Java objects (is there an issue already?)
They also use the query DSL which is quite limited by the fact that it cannot rely on the field bridge to do the object conversion as well as smart things like numeric field bridge adaptation.
It would make sense to offer a way to expose a field bridge as a composite of other field bridges. I have not thought about it a lot but it would need to:
-
offer a list of mapped subfields
-
for each field an associated field bridge (instance, type?)
That way, the implementation of a composite field bridge could be greatly simplified. And the Qeury DSL would find a match for a given subfield and thus function properly without the need to use ignoreFieldBridge and hack around numeric fields.
|