Hi,
it would also be nice to see the annotated classes Manager and Employee. However, looking at the exception I assume you just annotated the employees collection in Manager with @Field. Instead you should use @IndexEmbedded and then in Employee you should annotate all fields you want to include into the index with @Field.
Alternatively, you can annotate employees with @Field, but then you also have to specify @fieldBridge in order to tell Hibernate Search how to index Employees.
I recommend you read the section about indexing clections in the onlnd docs. If you then still have questions, please post the annotated classes.
--Hardy
|