On Thu, Nov 7, 2013, at 10:51 PM, Michael Tracey wrote:
> I'm trying to boost results slightly on a price (not currency) field that
> are closer to a certain value.  I want results that are not too expensive
> or too inexpensive to be favored.  Here is what we currently are trying:
> 
> bf=sub(1,abs(sub(15,price)))^0.2
> 
> where 15 is that "median" I want to boost towards.  Is this a good way? 
> I understand in older solr's it was common to use recip(ord()) for this
> but you shouldn't do so now.
> 
> Thanks for any comments or advice on improving this.

I think this is a case of "if it works". If it works for you, then
great.

What I would say though, is that if you have a lot of documents in your
index, consider pre-computing that field at index time, and boost on the
pre-computed value, as that will give you better performance.

Upayavira

Reply via email to