: secondly, the existing MySQL-based search returns documents in alphabetical : order by title, instead of by relevance. i'd like to replicate this : behaviour for the (few) people who prefer the existing system; however, i'm : not sure how to do it efficiently. i see i can pass my own HitCollector to
You don't need to use a HitCollector just to sort by a field, take a look at the Search.search(Query,Sort) method instead. Pay special attention to the javadocs for the Sort class. You can only sort of fields which are indexed in a specific way... http://lucene.apache.org/java/docs/api/org/apache/lucene/search/Searcher.html#search(org.apache.lucene.search.Query, org.apache.lucene.search.Sort) http://lucene.apache.org/java/docs/api/org/apache/lucene/search/Sort.html -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]