Skip to content

Instantly share code, notes, and snippets.

@firstrow
Forked from ArFeRR/gist:97671e54515dfd7be012
Created August 18, 2014 16:03
Show Gist options
  • Save firstrow/f9ca56e01776a0a30c4f to your computer and use it in GitHub Desktop.
Save firstrow/f9ca56e01776a0a30c4f to your computer and use it in GitHub Desktop.
{
"filtered":{
"filter":{
"bool":{
"must":[
{
"bool":{
"should":[
{
"bool":{
"must":[
{
"term":{
"productsOptionValues.productOption":"weight"
}
},
{
"term":{
"productsOptionValues.value":"2,7 kg"
}
}
]
}
}
]
}
},
{
"bool":{
"should":[
{
"bool":{
"must":[
{
"term":{
"productsOptionValues.productOption":"resolution"
}
},
{
"term":{
"productsOptionValues.value":"1600x900"
}
}
]
}
},
{
"bool":{
"must":[
{
"term":{
"productsOptionValues.productOption":"resolution"
}
},
{
"term":{
"productsOptionValues.value":"1920x1080"
}
}
]
}
}
]
}
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment