-
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] Term query on a wildcard field does not perform exact match #16754
Comments
Thanks @n9! That's definitely a bug. I'm not exactly sure what I was thinking when I wrote this line. I think I must have only been thinking about term queries that don't contain wildcard characters. I think it might be worthwhile to refactor Specifically:
Then we can make sure that one code path works well with case-insensitive flags and appropriate approximation and automaton matching. As a bonus, that solution would address this issue and #16755. Are you able to work on a fix? If not, would you be able to contribute a failing test case to https://github.com/opensearch-project/OpenSearch/blob/aaa92aeeb75a745ee7b058cc4b30b734e861cfc4/rest-api-spec/src/main/resources/rest-api-spec/test/search/270_wildcard_fieldtype_queries.yml? |
@msfroh |
Describe the bug
Term query on a wildcard field does not perform exact match.
Related component
Search
To Reproduce
Based on #15855.
Expected behavior
It should not return any document, but it returns all documents.
Additional Details
Host/Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: