Skip to content

Instantly share code, notes, and snippets.

@martijnvg
Created February 8, 2013 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martijnvg/4739823 to your computer and use it in GitHub Desktop.
Save martijnvg/4739823 to your computer and use it in GitHub Desktop.
{
"query": {
"bool": {
"should": [
{
"match": {
"name": "some name"
}
},
{
"nested": {
"path": "someArrOfNestedCriteriaObjects",
"query": {
"bool": {
"must": [
{
"match": {
"required": true
}
}
],
"should": [
{
"match": {
"tokenId": "some token"
}
}
]
}
}
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment