You can sort a search by multiple fields. I think you could try something like this:
Searcher searcher = new IndexSearcher(directory); Sort = new Sort(new SortField[] { SortField.FIELD_SCORE, new SortField("another_field") }; Hits hits = searcher.search(query,sort); -----Original Message----- From: André Maldonado [mailto:andre.maldon...@gmail.com] Sent: Friday, October 30, 2009 12:57 PM To: lucene-net-user@incubator.apache.org Subject: Simple question Hi. This can be a simple question, but I can't figure out the solution. I need to search my index in something like "SELECT TOP 5 ... ORDER BY another_field". But this is an empty query because I want to search in all documents. How can I do it? Thank's