You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by "Veera, Sekhar S" <sv...@hp.com> on 2006/01/06 14:34:07 UTC
Sorting Facility
Hi ,
Is there any way to sort the records in a file using lucene.?
Regards
Veera
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Sorting Facility
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
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