Closed navaneeth closed 8 years ago
Use the explain option to see how Elasticsearch is scoring your queries. You may need to increase the boost factor.
@navaneeth did you make it work ? boost_by is not working for me either no matter what factor I add.
It worked for me. In my case, the factor was small and not making a noticeable difference.
On Tue, Jan 12, 2016 at 3:56 PM, Filippos Vasilakis < notifications@github.com> wrote:
@navaneeth https://github.com/navaneeth did you make it work ? boost_by is not working for me either no matter what factor I add.
— Reply to this email directly or view it on GitHub https://github.com/ankane/searchkick/issues/558#issuecomment-170866704.
Thanks Navaneeth
I am having issues here as well. It seems with the normal boost_by
with a large factor I'm still not getting the correct results. When I switch too boost_mode multiply
then I start to see it working. Is it possible that score_mode sum isn't working properly anymore? Also, it would be great if the readme mentioned the scoring modes.
In my case, every document has a field called
pindex
. Thispindex
contains the popularity that this document has. Now when I search for documents, I search in the specified fields and I need to boost the documents which has high pindex value. Myboost_by
looks like the following.But this
boost_by
seems to be not working. I still see documents with higher pindex comes in the bottom of the search results. Am I using this incorrectly or is this a bug with searchkick?