lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Sorting Facility
Date Fri, 06 Jan 2006 15:40:33 GMT

On Jan 6, 2006, at 8:34 AM, Veera, Sekhar S wrote:
> Is there any way to sort the records in a file using lucene.?

I presume by "records" and "file" you mean sort Hits from a search of  
an index.

Yes, Lucene can do that.  Look at the various overloaded  
IndexSearcher.search() methods... the ones that take a Sort will do  
the trick.

	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message