lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: Lucene search priorities
Date Mon, 30 Oct 2006 12:45:50 GMT
I think what you want is IndexSearcher.search(Query, Filter, Sort). Filter
may be null, and Sort is a Sort object that allows you to sort on multiple
fields at once, which I assume is what you mane by "priorities".

Read the cautions about memory usage for a Sort object though.

Best
Erick

On 10/30/06, Amit Soni <amit_soni@netcore.co.in> wrote:
>
> Hi list.
>
> I am using lucene search for one of my site search. In which i am
> fetching values from the database and then index it.
>
> The fields which the docuement contains is:
> 1. hwid
> 2. title
> 3. author
> 4. keywords
> 5. synonyms
>
> Now i want the search result should be as per the following priorities
> 1. title
> 2. keywords
> 3. synonyms
>
> But right now it is in some different priorities. So if some one has and
> idean regarding this then please let me know.
>
> Thanks,
> Amit Soni
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message