[BUG] match_phrase_prefix query on an inner object text field not working #9203
Labels
bug
Something isn't working
Search:Relevance
Search
Search query, autocomplete ...etc
v2.16.0
Issues and PRs related to version 2.16.0
v3.0.0
Issues and PRs related to version 3.0.0
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: