Hi,
if you want to retrieve all records for an indexed class (without any query restrictions) the FullTextQuery would look like this:
// the field _hibernate_class stores the class name
QueryParser luceneParser =
new QueryParser("_hibernate_class", new KeywordAnalyzer());
//clazz is the class for which you want to retrieve all records for
Query luceneQuery = luceneParser.parse(clazz.getName());
//limit results to the given class: clazz
FullTextQuery query = fullTextSession.createFullTextQuery(luceneQuery, clazz);
|