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

Percolator named queries: rewrite for matched info #107432

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

mayya-sharipova
Copy link
Contributor

PR #103084 introduced an ability to return matched_queries during percolate
process for all percolator queries containing _name field.

But there was a bug with complex queries, as they were not rewritten before
obtaining their Weight function. This fixes the bug by ensuring all queries are
first rewritten.

Closes #107176

PR elastic#103084 introduced an ability to return matched_queries during percolate
process for all percolator queries containing `_name` field.

But there was a bug with complex queries, as they were not rewritten before
obraining their Weight function. This fixes the bug by ensuring all
queries are first rewritten.

Closes elastic#107176
@mayya-sharipova mayya-sharipova added >bug :Search/Highlighting How a query matched a document v8.14.0 :Search/Percolator Reverse search: find queries that match a document and removed :Search/Highlighting How a query matched a document labels Apr 12, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Apr 12, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Hi @mayya-sharipova, I've created a changelog YAML for you.

Copy link
Member

@benwtrent benwtrent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good. I think we might want to backport to 8.13.

Of course, this means the yaml test version skip will need to be updated after backport

@mayya-sharipova
Copy link
Contributor Author

mayya-sharipova commented Apr 12, 2024

@elasticmachine run docs-build

@mayya-sharipova mayya-sharipova merged commit 965ebab into elastic:main Apr 12, 2024
14 checks passed
@mayya-sharipova mayya-sharipova deleted the percolator_query_fix branch April 12, 2024 17:45
mayya-sharipova added a commit to mayya-sharipova/elasticsearch that referenced this pull request Apr 12, 2024
PR elastic#103084 introduced an ability to return matched_queries during percolate
process for all percolator queries containing `_name` field.

But there was a bug with complex queries, as they were not rewritten before
obraining their Weight function. This fixes the bug by ensuring all
queries are first rewritten.

Closes elastic#107176
mayya-sharipova added a commit to mayya-sharipova/elasticsearch that referenced this pull request Apr 12, 2024
PR elastic#103084 introduced an ability to return matched_queries during percolate
process for all percolator queries containing `_name` field.

But there was a bug with complex queries, as they were not rewritten before
obraining their Weight function. This fixes the bug by ensuring all
queries are first rewritten.

Closes elastic#107176
mayya-sharipova added a commit that referenced this pull request Apr 12, 2024
PR #103084 introduced an ability to return matched_queries during percolate
process for all percolator queries containing `_name` field.

But there was a bug with complex queries, as they were not rewritten before
obraining their Weight function. This fixes the bug by ensuring all
queries are first rewritten.

Backfort for #107432
Closes #107176
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search/Percolator Reverse search: find queries that match a document Team:Search Meta label for search team v8.13.3 v8.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Elasticsearch 8.13 Percolator Regression, Exception thrown On Wildcard Query createWeight
3 participants