Jim Richards Thanks for the extensive report. I wonder, though: did you try to use @IndexedEmbedded(includeEmbeddedObjectId = true)? Or to add the id field name in includePaths)? Document IDs are not really considered as fields in Hibernate Search, and as such are not embedded by default. Also, if all you care about is the ID, I would advise you to rather use includePaths = "id": in addition to asking Hibernate Search to embed the ID, this also instructs Search to only include the ID, and nothing else. This avoids the performance hit of embedding unneeded fields, which could make a huge difference if your IDs are immutable. |