-
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] Exists query fails if object has "search_as_you_type" field #11821
Comments
@apalchys -- Are you able to create a failing integration test for this issue? Sounds like it's very consistently reproducible. |
@msfroh -- I'm interested in contributing & raise PR to its resolution |
@apalchys -- That's one place where you can add an integration test. You can also add a case to one of the REST yaml tests: https://github.com/opensearch-project/OpenSearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/test/search/160_exists_query.yml. I personally find the yaml tests easier to write, since you just need to specify a series of REST requests, but either way works. @Luci-MG -- I've assigned the issue to you. Let me know if you need any help. Thanks! |
@msfroh Raised PR for the FIX please checkout and let me know if this needs any changes, Thank you :) |
Would be awesome if someone checked https://github.com/opensearch-project/opensearch-api-specification for whether it describes |
Describe the bug
The "exists" query on an object field will fail when a "search_as_you_type" field is nested under that object. See step to reproduce for an example.
Related component
Search
To Reproduce
Queries:
Executing search query gives the following error:
Expected behavior
The following query should not fail and return the document
Additional Details
Host/Environment (please complete the following information):
Additional context
The same bug in ElasticSearch fixed in 8.0
elastic/elasticsearch#64609
The text was updated successfully, but these errors were encountered: