Michael Tracey
2013-11-07 22:51:27 UTC
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.
M.
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.
M.