Skip to content

Instantly share code, notes, and snippets.

@biot023
Last active November 14, 2016 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biot023/11f12b82fb7df3dee816434f35b8021f to your computer and use it in GitHub Desktop.
Save biot023/11f12b82fb7df3dee816434f35b8021f to your computer and use it in GitHub Desktop.
[
{
"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