Last active
November 14, 2016 13:59
-
-
Save biot023/11f12b82fb7df3dee816434f35b8021f 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
[ | |
{ | |
"index": "test_items", | |
"type": "item", | |
"search": { | |
"query": { | |
"filtered": { | |
"query": { | |
"bool": { | |
"should": [ | |
{ | |
"terms": { | |
"tags": [ | |
"snow leopard" | |
] | |
} | |
}, | |
{ | |
"term": { | |
"subcategory_id": 103 | |
} | |
} | |
] | |
} | |
}, | |
"filter": { | |
"and": [ | |
{ | |
"term": { | |
"subcategory_id": 103 | |
} | |
} | |
] | |
} | |
} | |
}, | |
"from": 0, | |
"size": 6, | |
"sort": [ | |
"_score", | |
{ | |
"listed_at": { | |
"order": "desc" | |
} | |
} | |
] | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment