lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <>
Subject Re: eDismax - boost function of multiple values
Date Thu, 16 Oct 2014 14:20:03 GMT

I forgot one ampersand in my example. Did you add it? 


On Thursday, October 16, 2014 4:50 PM, Jens Mayer <> wrote:
Hey Ahmet,

thanks for your answer.
I've read about this on the following page: 
Using FunctionQuery point 3:
"The bf parameter actually takes a list of function queries separated by whitespace and each
with an optional boost."

If I write it the way you suggested, the result is the same.
Only inhabitants ranked up and importance will be ignored.


Ahmet Arslan <> schrieb am 20:26 Dienstag, 14.Oktober 2014:

Hi Jens,

Where did you read that you can write it separated by white spaces?

bq and bf are both can be defined multiple times.



On Tuesday, October 14, 2014 6:34 PM, Jens Mayer <> wrote:
Hey everyone,

I have a question about the boost function of solr.
The documentation say about multiple function querys that I can write it seperated by whitespaces.

Example: q=foo&bf=ord(popularity)^0.5 recip(rord(price),1,1000,1000)^0.3

Now I have two fields I like to boost. Inhabitants and importance.
The field Inhabitants contain the inhabitants of citys. and the field importance contain a
priority value - citys have the value 10, suburb the value 5 and streets the value 1.
If I use the bf parameter I can boost inhabitants so that citys with the most inhabitants
ranked up.

Example: q=foo&bf=ord(inhabitants)

The same happens if I boost importance.

Example: q=foo&bf=ord(importance)

But if I try to combine both so that importance and inhabitants ranked up 
only inhabitants will be ranked up and importance will be ignored.

Example: q=foo&bf=ord(inhabitants) ord(importance)

Knows anyone how I can fix this problem?


View raw message