{quote} In looking at the source code for HibernateSearch, the AnnotationMetadataProvider's checkForIndexedEmbedded() method appears to share the parseContext across all fields within the class {quote}
Exactly, I am having the same concerns. In fact we just "fixed" a bug (HSEARCH-1442) in this area. However, we just reverted the functionality to the pre {{ AnnotationMetadataProvider}} refactoring. In both cases the code had and still has the problem you mention. I don't think we should change it though for the 4.x line of Search. Instead I suggest we rewrite the algorithm as part of Search 5.
Depending on your use case the fix for HSEARCH-1442 might help. New 4.4 and 4.5 releases are coming in a a few days.
|