Skip to content
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

Boost match queries based on term proximity #49437

Open
romseygeek opened this issue Nov 21, 2019 · 3 comments
Open

Boost match queries based on term proximity #49437

romseygeek opened this issue Nov 21, 2019 · 3 comments
Labels
>enhancement :Search Relevance/Ranking Scoring, rescoring, rank evaluation. Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch

Comments

@romseygeek
Copy link
Contributor

Match queries currently score based on the standard BM25 bag-of-words model, where the input text is analyzed and terms are then added to a boolean query, using should or must clauses depending on the required query operator. This method does not take the positions of terms within the document into account. However, in many cases there is a correlation between the proximity of individual terms from the query and the relevance of the document.

We should add a proximity_boost parameter to the match query that takes a float value. Terms from the query can then be combined into an IntervalsSource.atLeast query that spans across each pairwise combination, giving a score bounded by 0 and 1 that gives a measure of the proximity of the terms, and this can then be converted to a boost as proximity_boost * (1 + interval_score) and applied to the query as whole via a function score.

@romseygeek romseygeek added >feature :Search Relevance/Ranking Scoring, rescoring, rank evaluation. labels Nov 21, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/Ranking)

@rjernst rjernst added the Team:Search Meta label for search team label May 4, 2020
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@javanna javanna added Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch and removed Team:Search Meta label for search team labels Jul 12, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search Relevance/Ranking Scoring, rescoring, rank evaluation. Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch
Projects
None yet
Development

No branches or pull requests

5 participants