You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Zwer <zw...@ukr.net> on 2014/02/18 18:52:35 UTC

Additive boost function

Hi Guys,

I faced with a problem of additive boosting.

2 fields: last_name and first_name.

User is searching for "mike t"

Query: (last_name:mike^15 last_name:mike*^7 first_name:mike^10
first_name:mike*^5) AND (last_name:t^15 last_name:t*^7 first_name:t^10
first_name:*^5)

The search result does not meet the expectations because score model
includes others statics of searching terms on the SOLR index. 
According to scoring formula of DefaultSimilarity the result score is a
multiplication.

The question is how to implement additive score model based on my boost
values ?



--
View this message in context: http://lucene.472066.n3.nabble.com/Additive-boost-function-tp4118066.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Additive boost function

Posted by Zwer <zw...@ukr.net>.
Jack, 

Could you, please, suggest how to use SOLR query functions to make all
fields boosts added on such query as I specified in the topic ?



--
View this message in context: http://lucene.472066.n3.nabble.com/Additive-boost-function-tp4118066p4118537.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Additive boost function

Posted by Jack Krupansky <ja...@basetechnology.com>.
The edismax query parser "bf" parameter gives you an additive boost.

See:
http://wiki.apache.org/solr/ExtendedDisMax#bf_.28Boost_Function.2C_additive.29

-- Jack Krupansky

-----Original Message----- 
From: Zwer
Sent: Tuesday, February 18, 2014 12:52 PM
To: solr-user@lucene.apache.org
Subject: Additive boost function

Hi Guys,

I faced with a problem of additive boosting.

2 fields: last_name and first_name.

User is searching for "mike t"

Query: (last_name:mike^15 last_name:mike*^7 first_name:mike^10
first_name:mike*^5) AND (last_name:t^15 last_name:t*^7 first_name:t^10
first_name:*^5)

The search result does not meet the expectations because score model
includes others statics of searching terms on the SOLR index.
According to scoring formula of DefaultSimilarity the result score is a
multiplication.

The question is how to implement additive score model based on my boost
values ?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Additive-boost-function-tp4118066.html
Sent from the Solr - User mailing list archive at Nabble.com.