Annotations for Lucene work really nice except for one thing. I cannot seem to be able to pass a Lucene Sorter to be used when doing any search.
Code:
FullTextSession fullTextSession = Search.createFullTextSession(getSession());
Query hibQuery = fullTextSession.createFullTextQuery(query, searchedClass);
Surely pagination and other features provided by Hibernate integration gives good results handling but without ability to sort directly in Lucene a lot is lost.
Is there another way to do this?
Thanks,
Ioan