lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com.INVALID>
Subject Re: eDismax - boost function of multiple values
Date Tue, 14 Oct 2014 18:26:10 GMT
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.

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

Ahmet



On Tuesday, October 14, 2014 6:34 PM, Jens Mayer <mjens32@yahoo.com.INVALID> 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?


greetings


Mime
View raw message