-
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] Wildcard field type causing errors in query with "fields" wildcard #15215
Comments
If we accept this bug in the weekly search triage meeting, I would like to work on this |
Thanks @Calebjh for reporting and for volunteering @hasnain2808 have assigned to you. @msfroh FYI. |
Yup! Sounds like a bug. I'm curious about whether the bug is in the wildcard on the |
@hasnain2808 Interesting. I thought that I tested both ways and found it worked for one and not the other, but perhaps I was trying too many different variations and got my test cases mixed up (I was just making the different adjustments by hand to try and see what was causing the failure). |
I retested we can add a new section with a date and add this as a new update/ new finding |
triage:issue replicates on 2.15, 2.16 but does not replicate on 3.x or 2.x wild card fields were added to 2.15 Looks like this PR solved the issue and we can close this Specifically this line |
Oh, nice! Thanks @hasnain2808 for working to reproduce. It looks like I merged that PR after the 2.17 freeze, but it should be fixed in 2.18. Special thanks to @HUSTERGS, who is fixing all the wildcard field bugs these days. |
Fixed in #15737 |
Describe the bug
When trying to incorporate the new
wildcard
field type into some existing index/query structures, I am encountering an error when using a wildcard in afields
query block.It seems to be related to the presence of multiple top level properties (my existing data has info split between
doc.*
fields andmetadata.*
fields, and when I create a test index with onlydoc.*
fields it seems to work).Related component
Search
To Reproduce
Expected behavior
If the type is not a
wildcard
, such as akeyword
, the query completes with no errors. I would expect either an informative error if this query structure is incompatible with wildcards for some reason, or (ideally) for the query to just work like it does with non-wildcard fields.Additional Details
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Querying OpenSearch 2.15 and 2.16 running as a docker container from an opensearch-dashboards 2.15 interface also running via Docker.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: