Apparently some people tend to assume that in indexed embedded classes all normal fields should use the @IndexedEmbedded annotation instead of @Field/.. like in:
{code} @IndexedEmbedded String countryName {code}
Might be nice to check for such unexpected usage, as it's currently silently ignored.
---
Also (HSEARCH-1971):
As [this SO question|http://stackoverflow.com/questions/32093752/query-an-indexedembedded-list-of-enumerated-enum-with-hibernate-search] made me realize, it's not always clear when a field needs a {{@Field}} annotation rather than a {{@IndexedEmbedded}} annotation, for example like in the specific question when indexing a simple collection of enums. |
|