|
Hi Marc Schipperheyn, would you mind having a look at this test case - https://github.com/hferentschik/hibernate-search/commit/36406dbf863b13fa785d0d6d5a7ada3b6f850ef6
The scenario is:
-
Two entities, one @Indexed, the other not, but indexed embedded via the first entity
-
@IndexedEmbedded uses prefix
-
The indexed field in the embedded instance uses @Field(index = Index.YES, analyze = Analyze.NO)
AFAIU, this is the problem case you are describing. Note, that I am leaving out any ORM related annotations and configuration. Given the stacktrace the error occurs during query build time and lies somewhere in the DSL code. For that reason ORM and its configuration should not matter.
The stacktrace indicates that no field bridge can be found for the field role.label. In the test I am asserting that the right field bridge is indeed found.
I have not yet investigated whether somewhere ordering plays a role. I just would like to narrow down the actual error scenario. WDYT?
|