We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the sourcecode, I found
SPH_RANK_PROXIMITY_BM25 = 0 # default mode, (...)
But when not setting rankmode in my model, ranking does not occur, all weight values are set to 1.
rankmode
The text was updated successfully, but these errors were encountered:
Actually the default mode gets set to 2 (SPH_RANK_NONE).
SPH_RANK_NONE
>>> Company.search.query('UBS AG')._rankmode 2
That has a strong effect on search results.
Workaround is to set rankmode = u'SPH_RANK_PROXIMITY_BM25' in the model's SphinxSearch instance.
rankmode = u'SPH_RANK_PROXIMITY_BM25'
Sorry, something went wrong.
No branches or pull requests
In the sourcecode, I found
But when not setting
rankmode
in my model, ranking does not occur, all weight values are set to 1.The text was updated successfully, but these errors were encountered: