-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BUG] match_phrase_prefix query on an inner object text field not working #9203
Comments
The steps of reproducing this bug can be simplified as this:
, then you can see nothing returns, with
However, if you use After diving deep on it, I found that this bug is caused by the parameter The problem is that when So you can imagine that there's a workaround for this bug, that is to set
|
Describe the bug
I have a document with a field (array) that stores multiple objects with one text attribute. when I execute a match_phrase_prefix query on that text field I do not see any hits when there are multiple objects in the array. However, when the first inner object's text field is a match, I do see the document as a hit.
To Reproduce
Sample document
Insert the above doc into an index.
Run below queries:
match_phrase query on applications.name field.
match_phrase_prefix query on applications.name field.
Expected behavior
Both match_phrase and match_phrase_prefix query should return the document as a hit. However, only match_phrase query returns a hit.
Plugins
None
Screenshots
None
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: