|
unrelated, but the following (taken from your example code) should not be neccessary:
query.add(new TermQuery(new Term("_hibernate_class", clazz.getName())), Occur.MUST);
Unless you're trying to force it to disable polymorphism, Search already targets (and filters) the appropriate type.
|