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 "Kinnar Kumar Sen, Noida" <Ki...@hcl.in> on 2006/05/12 12:45:31 UTC
RE:SORTING
Hi
I am indexing the price of some items in my index . I have quite a few
number of indexes. I want to sort the items according to the price . is
there a way to include all the indexes at one go while sorting or I have
to do it one index at a time...
Cheers
KINNAR
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
RE:SORTING
Posted by Chris Hostetter <ho...@fucit.org>.
: I am indexing the price of some items in my index . I have quite a few
: number of indexes. I want to sort the items according to the price . is
: there a way to include all the indexes at one go while sorting or I have
: to do it one index at a time...
I assume you are using a MultiSearcher, or perhaps a MultiReader? ...
either way you should be able to use the Searcher.search(Query,Sort)
method (or any of the other Searcher.search methods that take a Sort
parameter)
-Hoss
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org