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
Match All Percolate Query Returns Unexpected Values #52850
Labels
>bug
:Search/Percolator
Reverse search: find queries that match a document
Team:Search
Meta label for search team
Comments
markharwood
added
the
:Search/Percolator
Reverse search: find queries that match a document
label
Feb 28, 2020
Pinging @elastic/es-search (:Search/Percolator) |
Is this a feature or a bug? I'm wondering cause i'm trying to determine if these is negatively impacting the performance of my percolator queries. |
This is a bug. If percolator queries where to be highlighted then that would cause error if the returned slots are negative. |
jimczi
added a commit
to jimczi/elasticsearch
that referenced
this issue
Jun 15, 2020
This commit ensures that we filter out nested documents when retrieving the document slots of a matching query. Closes elastic#52850
jimczi
added a commit
that referenced
this issue
Jun 17, 2020
This commit ensures that we filter out nested documents when retrieving the document slots of a matching query. Closes #52850
jimczi
added a commit
that referenced
this issue
Jun 17, 2020
This commit ensures that we filter out nested documents when retrieving the document slots of a matching query. Closes #52850
jimczi
added a commit
that referenced
this issue
Jun 17, 2020
This commit ensures that we filter out nested documents when retrieving the document slots of a matching query. Closes #52850
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
Elasticsearch version (
bin/elasticsearch --version
): 6.4.2, 6.8.2, 7.6.0Plugins installed: []
I use the elasticsearch docker images: docker.elastic.co/elasticsearch/elasticsearch-oss:x.x.x
Description of the problem including expected versus actual behavior:
First of, I'll mention that this bug is similar to #42361 which was supposedly fixed in 6.8.1 but I am able to reproduce similar behavior in higher versions.
When using nested docs and a percolate query with a
match_all
clause, I believe the percolate query is matching against the nested docs which is being manifested as negative indices in the_percolator_document_slot
field.Another note: I tested this on version 6.3.3 and am unable to reproduce it, so this must have been introduced in later versions.
Steps to reproduce:
Create a new index with a mapping for a nested doc containing two text fields and a query field for the percolator
Collapse/Expand
Create a percolate match_all percolate query
Collapse/Expand
Percolate some documents
Collapse/Expand
And the response:
I believe this is exactly the behavior described in the previously mentioned bug since increasing the number of nested docs in the percolated document increases the occurrences of negative indices.
For instance another percolate query
Collapse/Expand
returns the following
The text was updated successfully, but these errors were encountered: