Created
April 16, 2015 14:55
-
-
Save lighta/b0fa8ab7c393b235856c to your computer and use it in GitHub Desktop.
es_nested_query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_source": [ | |
"name", | |
"attribs" | |
], | |
"query": { | |
"nested": { | |
"path": "attribs", | |
"query": { | |
"bool": { | |
"must": [ | |
{ | |
"term": { | |
"attribs.label": "Sport" | |
} | |
}, | |
{ | |
"term": { | |
"attribs.color": "Basket" | |
} | |
} | |
] | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment