1/29 Andy
> Ah, thank you!
>
>
>
> --- On Fri, 1/29/10, Lance Norskog wrote:
>
> > From: Lance Norskog
> > Subject: Re: boosting unexpired documents
> > To: solr-user@lucene.apache.org
> > Date: Friday, January 29, 2010, 12:32 AM
> > You add a ran
Ah, thank you!
--- On Fri, 1/29/10, Lance Norskog wrote:
> From: Lance Norskog
> Subject: Re: boosting unexpired documents
> To: solr-user@lucene.apache.org
> Date: Friday, January 29, 2010, 12:32 AM
> You add a range query on the date,
> and boost documents within that
&
You add a range query on the date, and boost documents within that
date range. Check out the 'boost query' feature of dismax.
http://www.lucidimagination.com/search/document/CDRG_ch07_7.4.2.9
It's also possible with the standard query parser but a pain in the neck:
(value)^2 OR (NOT value)
My documents have a field "expiration" that is the expiration date of that doc.
I want to give a boost to all documents that haven't expired. I still want to
have expired documents returned, but unexpired documents should be given
priority.
Ideally the boost amount for all unexpired documents