-
Notifications
You must be signed in to change notification settings - Fork 25k
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
multi_match lucene query broken since 8.7.0 #95738
Labels
>bug
:Search/Search
Search-related issues that do not fall into other categories
Team:Search
Meta label for search team
Comments
pxsalehi
added
:Search/Search
Search-related issues that do not fall into other categories
and removed
needs:triage
Requires assignment of a team area label
labels
May 2, 2023
Pinging @elastic/es-search (Team:Search) |
Thanks a lot for reporting this! It's a subtle bug caused by a change in Lucene 9.5.0 (apache/lucene#11941). I will open a PR to fix this upstream. |
I opened apache/lucene#12260 to address this in Lucene. |
javanna
added a commit
to javanna/elasticsearch
that referenced
this issue
May 3, 2023
This adds unit test coverage for a bug that was recently found in Lucene. We would have caught it earlier if we were testing the underlying lucene query being generated. Closes elastic#95738
javanna
added a commit
to javanna/elasticsearch
that referenced
this issue
May 10, 2023
…lastic#95772) This adds unit test coverage for a bug that was recently found in Lucene. We would have caught it earlier if we were testing the underlying lucene query being generated. Closes elastic#95738
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
>bug
:Search/Search
Search-related issues that do not fall into other categories
Team:Search
Meta label for search team
Elasticsearch Version
Version: 8.7.1, Build: docker/f229ed3f893a515d590d0f39b05f68913e2d9b53/2023-04-27T04:33:42.127815583Z, JVM: 20.0.1
Installed Plugins
No response
Java Version
bundled
OS Version
Linux f7ea544ab24a 5.15.49-linuxkit #1 SMP Tue Sep 13 07:51:46 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Problem Description
Starting in 8.7.0, the lucene query constructed for
multi_match
queries of typephrase_prefix
and multiple explicitly specified fields is wrong, only searching one filed multiple times instead of all specified fields once, resulting in incomplete search results. See next section for detailed steps and description of where it goes wrong.Steps to Reproduce
multi_match
andphrase_prefix
, not find anything 🤔The resulting query searches the
identification
field four times. This is not right.In ES 8.6.2 and older, the query searches all fields once.
Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: