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 On 20/7/07 01:27, "climbingrose" <[EMAIL PROTECTED]> wrote: > 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. >> >> i personally recommend the function approach, because it gives you a more >> gradual falloff in terms of the scores of documents ... the BQ approahc >> works great for simple boosting of "things in the last N days should score >> really high" but 1 millisecond after that cut off the score plummets >> immediately. >> >> side note... >> >> : > > Sorry just correcting myself: >> : > > <str name="bq">your_date_field:[NOW-24HOURS TO NOW]^ 10.0</str> >> >> the first example is perfectly fine, and will be more efficient because it >> will take better advantage of the field cache... >> >> : > > > <str name="bq">your_date_field:[NOW/DAY-24HOURS TO NOW]^10.0</str> >> >> ...if you don't round down to the nearest day, then every request will >> generate a new query which will get put in the filterCache. if a day >> isn't granular enough for you, you can round to the nearest hour (or even >> minute) but i strongly suggest you round to something so you don't wind up >> using millisecond precision.... >> >> <str name="bq">your_date_field:[NOW/HOUR-1DAY TO NOW]^10.0</str> >> >> >> >> -Hoss >> >> > 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.