"Erick Erickson" <[EMAIL PROTECTED]> wrote on 31/10/2006 05:03:18:
> I don't remember who wrote this, Chris or Yonik or Otis, but here's the
word
> from somebody who actually knows...
>
> index time field boosts are away to express things like "this document
title
> is worth twice as much as the ti
se this time. Do i
> > have to give boost and index and search both or either index or search?
> > Also can you give some docs which has something on how to use boost on
> > particular fields.
> >
> > Thanks,
> > Amit Soni
> >
> > Bhavin Pandya wrote:
>
> and you can boost to perticular field at index time
>
> - Bhavin pandya
>
> - Original Message - From: "Patrick Turcotte" <[EMAIL PROTECTED]>
> To: ; <[EMAIL PROTECTED]>
> Sent: Monday, October 30, 2006 7:38 PM
> Subject: Re: Lucene search
,
You can give boost to query at search time...
and you can boost to perticular field at index time
- Bhavin pandya
- Original Message - From: "Patrick Turcotte" <[EMAIL PROTECTED]>
To: ; <[EMAIL PROTECTED]>
Sent: Monday, October 30, 2006 7:38 PM
Subject: Re: Lu
Hi amit,
You can give boost to query at search time...
and you can boost to perticular field at index time
- Bhavin pandya
- Original Message -
From: "Patrick Turcotte" <[EMAIL PROTECTED]>
To: ; <[EMAIL PROTECTED]>
Sent: Monday, October 30, 2006 7:38 PM
Subj
I don't remember the syntax right now, but how about giving a boost to
certain fields, either while indexing or while searching ?
Patrick
On 10/30/06, Amit Soni <[EMAIL PROTECTED]> wrote:
Hi Erick,
Thanks for the reply.
Actually the priorities mean when i search for example for cancer then
i
Hi Erick,
Thanks for the reply.
Actually the priorities mean when i search for example for cancer then
in the result if get the result in order like
1. it appears in title
2. it appears in keywords
3. it appears in synonyms.
But right now with the default implementation when i search for quer
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/