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
Steps to reproduce
curl -XPOST 'http://localhost:9200/test/sublocality/1' -d '{ "name" : "xxx", "country" : { "name" : "yyy" } }' curl -XPOST 'http://localhost:9200/test/country/1' -d '{ "name" : "zzz", "country" : { "name" : "yyy" } }' curl -XPOST 'http://localhost:9200/test/_search' -d '{ "query": { "match_all": {} }, "facets": { "term": { "terms": { "field": "country.name", "size": 10 } } } }' {"took":3,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":2,"max_score":1.0,"hits":[{"_index":"test","_type":"sublocality","_id":"1","_score":1.0,"_source":{ "name" : "xxx", "country" : { "name" : "yyy" } }},{"_index":"test","_type":"country","_id":"1","_score":1.0,"_source":{ "name" : "zzz", "country" : { "name" : "yyy" } }}]},"facets":{"term":{"_type":"terms","missing":0,"total":2,"other":0,"terms":[{"term":"zzz","count":1},{"term":"xxx","count":1}]}}}
This gives 1 ZZZ and 1 XXX instead of 2 YYY.
But then
{ "query": { "match_all": {} }, "facets": { "term": { "terms": { "field": "country.country.name", "size": 10 } } } }
Gives the expected result.
The text was updated successfully, but these errors were encountered:
Hi @Vineeth-Mohan
Yes, we're aware of it and are planning in making fieldname resolution ambiguous in #4081
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce
This gives 1 ZZZ and 1 XXX instead of 2 YYY.
But then
Gives the expected result.
The text was updated successfully, but these errors were encountered: