Created
March 17, 2015 13:17
-
-
Save ArFeRR/1e13c718c0ba9af29db2 to your computer and use it in GitHub Desktop.
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
{ | |
"query":{ | |
"filtered":{ | |
"filter":{ | |
"bool":{ | |
"must":[ | |
{ | |
"range":{ | |
"skus.stock":{ | |
"gt":0, | |
"lt":999999 | |
} | |
} | |
}, | |
{ | |
"term":{ | |
"categories.id":[ | |
93449, | |
96790, | |
63025, | |
63406, | |
97253, | |
62714, | |
63412 | |
] | |
} | |
}, | |
{ | |
"exists":{ | |
"field":"brand.id" | |
} | |
}, | |
{ | |
"term":{ | |
"isActive":true | |
} | |
}, | |
{ | |
"term":{ | |
"notShowInCatalog":false | |
} | |
} | |
] | |
} | |
} | |
} | |
}, | |
"aggs":{ | |
"option_cnt":{ | |
"terms":{ | |
"field":"skus.optionValues.id", | |
"size":100000 | |
} | |
} | |
}, | |
"size":1, | |
"fields":[ | |
"id" | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment