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
Unexpected behaviour with search_as_you_type field indexed with multiple values #64394
Comments
Pinging @elastic/es-search (:Search/Suggesters) |
@romseygeek can you take a look ? |
Following is my analysis: 1. Query Parsing
will be parsed into : 2. Query Execution
3.Inconsistent positionsif search_as_you_type field is given multiValues. such as
and query is
Any good idea to fix this problem? |
Elasticsearch version (
bin/elasticsearch --version
): 7.9.3Steps to reproduce:
match_phrase_prefix
query on a search_as_you_type field doesn't seem to work properly as expected. In the example above first document is indexed with ["owl", "quick brown fox dog"],querying
q, qu, qui, .. quick b.. , quick brown f..
works butquick brown fox d, quick brown fox do, quick brown fox dog
doesn't. However all the possible prefix queries (for "quick brown fox dog") works for the document 2.I'm not sure this is an expected behavior but seems pretty strange and it is not documented anywhere
Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: