Just tried the bq approach and it works beautifully. Exactly what I was
looking for. Still, I'd like to know which approach is the preferred? Thanks
again guys.

On 7/20/07, climbingrose <[EMAIL PROTECTED]> wrote:

Thanks for both answers. Which one is better in terms of performance? bq
or bf?

On 7/20/07, Daniel Alheiros < [EMAIL PROTECTED]> wrote:
>
> Sorry just correcting myself:
> <str name="bq">your_date_field:[NOW-24HOURS TO NOW]^ 10.0</str>
>
> Regards,
> Daniel
>
> On 19/7/07 15:25, "Daniel Alheiros" <[EMAIL PROTECTED]> wrote:
>
> > I think in this case you can use a "bq" (Boost Query) so you can apply
> this
> > boost to the range you want.
> >
> > <str name="bq">your_date_field:[NOW/DAY-24HOURS TO NOW]^10.0</str>
> >
> > This example will boost your documents with date within the last 24h.
> >
> > Regards,
> > Daniel
> >
> > On 19/7/07 14:45, "climbingrose" <[EMAIL PROTECTED]> wrote:
> >
> >> Hi all,
> >>
> >> I'm puzzling over how to boost a date field in a DisMax query. Atm,
> my qf is
> >> "title^5 summary^1". However, what I really want to do is to allow
> document
> >> with latest "listedDate" to have better score. For example, documents
> with
> >> listedDate:[NOW-1DAY TO *] have additional score over documents with
> >> listedDate:[* TO NOW-10DAY]. Any idea?
> >
> >
> > http://www.bbc.co.uk/
> > This e-mail (and any attachments) is confidential and may contain
> personal
> > views which are not the views of the BBC unless specifically stated.
> > If you have received it in error, please delete it from your system.
> > Do not use, copy or disclose the information in any way nor act in
> reliance on
> > it and notify the sender immediately.
> > Please note that the BBC monitors e-mails sent or received.
> > Further communication will signify your consent to this.
> >
>
>
> http://www.bbc.co.uk/
> This e-mail (and any attachments) is confidential and may contain
> personal views which are not the views of the BBC unless specifically
> stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in
> reliance on it and notify the sender immediately.
> Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
>
>


--
Regards,

Cuong Hoang




--
Regards,

Cuong Hoang

Reply via email to