Query across multiple Indexes (Sub Classes)

The current Implementation uses the MultiFieldQueryParser (see my third post). I thougt the Query in the pull request shows more clearly what the Users want to retrieve.

I tried the f.simpleQueryString() Method but I get the same results like with the MultiFieldQueryParser. Or do you mean I should go for the simpleQueryString + indexing the MetaData Objects?

MultiFieldQueryParser should behave similarly.

I think there’s a misunderstanding regarding what the query “Hibernate Search” AND John means. It means both terms must appear in every entity returned by the query. Not “at least one entity must match ‘Hibernate Search’ and at least one entity must match ‘John’”. Each entity is filtered independently.

I think you should really rethink the general approach: if you want to retrieve MetaData objects, then add @Indexed to the MetaData entity and apply your filters to the MetaData entity.

As to embedding the entities into MetaData: