Must query error working to match two terms

my elastic search result is....
.......
string_facet": [
{
"facet-value": "puma",
"facet-name": "brand"
},
{
"facet-value": "amazon",
"facet-name": "site"
}
],
................

query not working....
nested": {
"path": "search_data.string_facet",
"query": {
"bool": {
"must": [
{
"term": {
"search_data.string_facet.facet-name": "puma"
},
"term": {
"search_data.string_facet.facet-value": "amazon"
}
}]

......
Can you kindly tell me how I can check puma And amazon only show not others...so I kept these things inside of must...but its not working....I want AND operator so I kept inside of the must.

Hope to hear from you soon.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.