We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using the flat_object type, keys that appear after an array within the object do not return any hits in search queries
Other
curl -X PUT "$OS_HOST/$INDEX_NAME" -H 'Content-Type: application/json' -d '{ "mappings": { "properties": { "data": { "type": "object", "properties": { "detail": { "type": "flat_object" } } } } } }'
curl -X POST "$OS_HOST/$INDEX_NAME/_doc/1" -H 'Content-Type: application/json' -d '{ "data": { "detail": { "val1": "val1", "array1": [ { "key3": "value5", "key4": "value6" }, { "key3": "value7", "key4": "value8" } ], "val2": "val2" } } }'
curl -X GET "$OS_HOST/$INDEX_NAME/_search" -H 'Content-Type: application/json' -d '{ "query": { "match": { "data.detail.val2": "val2" } } }'
curl -X GET "$OS_HOST/$INDEX_NAME/_search" -H 'Content-Type: application/json' -d '{ "query": { "match": { "data.detail.val1": "val1" } } }'
Query should return matching values, despite the structure of the flat_object.
Plugins No plugins enabled
Screenshots
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:
Looks like a legit problem. Want to turn this into a (failing) YAML REST test?
Sorry, something went wrong.
[Triage - attendees 1 2 3 4 5]
Thanks for filing. Looks like a bug with clear reproduction steps.
No branches or pull requests
Describe the bug
When using the flat_object type, keys that appear after an array within the object do not return any hits in search queries
Related component
Other
To Reproduce
Expected behavior
Query should return matching values, despite the structure of the flat_object.
Additional Details
Plugins
No plugins enabled
Screenshots
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: