Skip to content

Instantly share code, notes, and snippets.

@GrantGochnauer
Created June 4, 2013 18:27
Show Gist options
  • Save GrantGochnauer/5708260 to your computer and use it in GitHub Desktop.
Save GrantGochnauer/5708260 to your computer and use it in GitHub Desktop.
Working ES query when excluding nested call
{
"from" : 0,
"size" : 10,
"filter" : {
"bool" : {
"must" : {
"term" : {
"tenantName" : "MyTenantName"
}
},
"must" : {
"term" : {
"channelId" : "1"
}
},
"must" : {
"or" : {
"filters" : [ {
"term" : {
"logicalName" : "grant.html"
}
}, {
"term" : {
"altNames" : "grant.html"
}
} ]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment