Re: DisMax query and date boosting

2007-07-20 Thread Daniel Alheiros
I'm using both the qb and the function, so the function gradually boost fresher documents and the qb act as an extra boost for the most recent ones. Good to now that it's interesting to avoid such precision, in fact I'm rounding my times avoiding using NOW, so it's fine for me. Regards, Daniel

Re: DisMax query and date boosting

2007-07-19 Thread climbingrose
Thanks for the answer Chris. The DisMax query handler is just amazing! On 7/20/07, Chris Hostetter <[EMAIL PROTECTED]> wrote: : 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.

Re: DisMax query and date boosting

2007-07-19 Thread Chris Hostetter
: 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. i personally recommend the function approach, because it gives you a more gradual falloff in terms of the scores of documents ...

Re: DisMax query and date boosting

2007-07-19 Thread climbingrose
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? O

Re: DisMax query and date boosting

2007-07-19 Thread climbingrose
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: your_date_field:[NOW-24HOURS TO NOW]^10.0 Regards, Daniel On 19/7/07 15:25, "Daniel Alheiros" <[EMAIL PROTECTED]> wrote: > I th

Re: DisMax query and date boosting

2007-07-19 Thread Daniel Alheiros
Sorry just correcting myself: your_date_field:[NOW-24HOURS TO NOW]^10.0 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. > > your_date_field:[NOW/DAY-24HOUR

Re: DisMax query and date boosting

2007-07-19 Thread Daniel Alheiros
I think in this case you can use a "bq" (Boost Query) so you can apply this boost to the range you want. your_date_field:[NOW/DAY-24HOURS TO NOW]^10.0 This example will boost your documents with date within the last 24h. Regards, Daniel On 19/7/07 14:45, "climbingrose" <[EMAIL PROTECTED]> wrote

Re: DisMax query and date boosting

2007-07-19 Thread Pieter Berkel
Try using a boost function (bf) parameter like this: bf=recip(rord(listedDate),1,1000,1000)^2.5 This should boost documents with more recent listedDate so they appear higher in the results list. For more info see the wiki page on DismaxRequestHandler and Functions: http://wiki.apache.org/solr/D