-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
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
Add boolean or constant_score similarity #6731
Labels
>enhancement
help wanted
adoptme
:Search/Search
Search-related issues that do not fall into other categories
Comments
Boolean similarity is now in Lucene 6.4 |
What is the status of this? is it exposed already? |
Not yet |
abeyad
pushed a commit
to abeyad/elasticsearch
that referenced
this issue
Mar 18, 2017
This commit adds the boolean similarity scoring from Lucene to Elasticsearch. The boolean similarity provides a means to specify that a field should not be scored with typical full-text ranking algorithms, but rather just whether the query terms match the document or not. Boolean similarity scores a query term equal to its query boost only. Boolean similarity is available as a default similarity option and thus a field can be specified to have boolean similarity by declaring in its mapping: "similarity": "boolean" Closes elastic#6731
abeyad
pushed a commit
that referenced
this issue
Mar 28, 2017
This commit adds the boolean similarity scoring from Lucene to Elasticsearch. The boolean similarity provides a means to specify that a field should not be scored with typical full-text ranking algorithms, but rather just whether the query terms match the document or not. Boolean similarity scores a query term equal to its query boost only. Boolean similarity is available as a default similarity option and thus a field can be specified to have boolean similarity by declaring in its mapping: "similarity": "boolean" Closes #6731
abeyad
pushed a commit
that referenced
this issue
Mar 28, 2017
This commit adds the boolean similarity scoring from Lucene to Elasticsearch. The boolean similarity provides a means to specify that a field should not be scored with typical full-text ranking algorithms, but rather just whether the query terms match the document or not. Boolean similarity scores a query term equal to its query boost only. Boolean similarity is available as a default similarity option and thus a field can be specified to have boolean similarity by declaring in its mapping: "similarity": "boolean" Closes #6731
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
>enhancement
help wanted
adoptme
:Search/Search
Search-related issues that do not fall into other categories
The idea here is that some use cases don't need or want full-text ranking. In a lot of cases it can even hurt, for example: trying to use fuzzy query to find misspellings in a database of place names or something like that.
Today I think its too hard to turn off various measures such as IDF, we could just make it easy by providing a simple similarity out of box that users could enable.
The text was updated successfully, but these errors were encountered: