Quote:
ok, after working through the multifieldqueryparser in the book, i realised, that this one just do the search over different classes. The org.hibernate.search.FulltextQuery still needs an specific class in its arguments, thats not the way i want it.
Where do you have to specify a class in FullTextQuery?
The way to filter on classes is at construction time of the query:
Code:
FullTextSession.createFullTextQuery(org.apache.lucene.search.Query luceneQuery, java.lang.Class<?>... entities)
where entities is a vararg parameter, meaning you don't have to specify any class at all which is equivalent to searching over all indexed entities.
--Hardy