Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"bool": {
"should": [
[
{
"bool": {
"must": [
[
{
"term": {
"securityTags": "Beer"
}
},
{
"term": {
"securityTag_Count": 1
}
}
]
]
}
},
{
"bool": {
"must": [
[
{
"term": {
"securityTags": "DomesticBeer"
}
},
{
"term": {
"securityTag_Count": 1
}
}
]
]
}
},
{
"bool": {
"must": [
[
{
"term": {
"securityTags": "HomeDrinking"
}
},
{
"term": {
"securityTag_Count": 1
}
}
]
]
}
},
{
"bool": {
"must": [
[
{
"term": {
"securityTags": "Beer"
}
},
{
"term": {
"securityTags": "DomesticBeer"
}
},
{
"term": {
"securityTag_Count": 2
}
}
]
]
}
},
{
"bool": {
"must": [
[
{
"term": {
"securityTags": "Beer"
}
},
{
"term": {
"securityTags": "HomeDrinking"
}
},
{
"term": {
"securityTag_Count": 2
}
}
]
]
}
},
{
"bool": {
"must": [
[
{
"term": {
"securityTags": "DomesticBeer"
}
},
{
"term": {
"securityTags": "HomeDrinking"
}
},
{
"term": {
"securityTag_Count": 2
}
}
]
]
}
},
{
"bool": {
"must": [
[
{
"term": {
"securityTags": "Beer"
}
},
{
"term": {
"securityTags": "DomesticBeer"
}
},
{
"term": {
"securityTags": "HomeDrinking"
}
},
{
"term": {
"securityTag_Count": 3
}
}
]
]
}
}
]
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment