On 4/5/2011 1:17 PM, Chris Hostetter wrote:
the "boost" param of edismax is probably a lot better choice then either
bq/bf -- but it really depends on wether you want an additive boost or a
multiplicitive one (of course with teh function query syntax add(),
product() and (query() can be combined in anyway you want)

in terms of the merrits of the bq vs bf, if we wanted to get rid of one or
the other, i'd argue eliminating bf since it has *very* brittle parsing
rules in place (for historic reasons).  while you can use variable
derefrencing to get the "guts" of either a bf=query($a) or a bq={$func
v=$a}, promoting the use of bq over bf makes using the param body inline
simpler so people are less likely to run into problems (ie: bq={!func}...
doesn't require any special escaping, but bf=query(...) does)

We aren't yet using dismax in production, but I've had it in my config for a while now. I've changed it to edismax in the 3.1 setup I'm putting together now. It has the following in the bf parameter:

recip(ms(NOW/DAY,pd),3.16e-11,1,1)

Is there a way to do this without bf? I couldn't make heads or tails of what you wrote above.

Thanks,
Shawn

Reply via email to