Allow bridges to declare how the engine should behave when the user creates a predicate projection on an object field. For example a "match" predicate projection on field "color" could result in a boolean query composite projection with three "must" clauses field projections on the "color.r" "color.g" and "color.b" fields.
Maybe we could implement something similar to HSEARCH-3320, i.e. have the bridge register a callback that would turn a user-defined projection definition into a composite projection (see HSEARCH-3222, and in particular the draft of composite projection APIs [here|https://github.com/hibernate/hibernate-search-6-poc/commit/85edb83d1d248dba0514a78177b1c19761f67646#diff-6d730c3817e63442c2ab143d3dacc42fR198]. |
|