public
Created — forked from emedina/testES1.em

JSON query

  • Download Gist
testES1.em
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
{
"explain" : false,
"from" : 1,
"size" : 10,
"sort" : [ { "_score" : { } } ],
"query" : {
"filtered" : {
"query" : {
"bool" : {
"must" : { "field" : { "_all" : "noche" } },
"must" : { "field" : { "_all" : "horror" } }
}
},
"filter" : {
"bool" : {
"must" : { "term" : { "tienda" : "Casa del Libro" } },
"must" : { "term" : { "categorias1" : "Ocio y cultura" } }
}
}
}
},
"facets" : {
"categorias2" : {
"facet_filter" : {
"term" : { "categorias1" : "Ocio y cultura" }
},
"terms" : { "field" : "categorias2", "size" : 10 }
},
"tienda" : {
"facet_filter" : {
"term" : { "tienda" : "Casa del Libro" }
},
"terms" : { "field" : "tienda", "size" : 10 }
}
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.