It all depends on what you want your scores to look like. Or do you care at
all what the scores look like?

Here's one strategy... Divide the score space into two halves, the upper
half for a preferred manufacturer and the lower have for non-preferred
manufacturers. Step 1: Add 1.0 to the raw Lucene score (bf parameter) if
the document is a preferred manufacturer. Step 2: Divide the resulting
score by 2 (boost parameter).

So if two documents had the same score, say 0.7, the preferred manufacturer
would get a score of (1+0.7)/2 = 1.7/2 = 0.85, while the non-preferred
manufacturer would get a score of 0.7/2 = 0.35.

IOW, apply an additive boost of 1.0 and then a multiplicative boost of 0.5.


-- Jack Krupansky

On Sat, Apr 11, 2015 at 12:28 PM, Mike L. <javaone...@yahoo.com.invalid>
wrote:

>  Hello -
>     I have qf boosting setup and that works well and balanced across
> different fields.
> However, I have a requirement that if a particular manufacturer is part of
> the returned matched documents (say top 20 results) , all those matched
> docs from that manufacturer should be bumped to the top of the result list.
>    From a scoring perspective - when I look at those manufacturer docs vs
> the ones scored higher - there is a big difference there, because the
> keywords searched are much more relevant on other docs.
> I'm a bit concerned with the idea of applying an enormous bq boost for
> that particular manufacturer to bump up those doc's - but I suspect it
> would work. On the flip side, I considered using elevate, but there are
> thousands of documents I would have to account and hardcode those doc id's.
> Is using bq the best approach or is there a better solution to this?
> Thanks,Mike

Reply via email to