Hi,
I do a multisearch with:
{}
{"query" : { "term" : {"category" : "sport"} }, "facets" : {"text_t1" :
{"terms" : {"field" : "tags1", "size" : 20}}}}
{}
{"query" : { "term" : {"category" : "sport"} }, "facets" : {"text_t2" :
{"terms" : {"field" : "tags1", "size" : 20}}}}
(twice the exact same request).
And, I get:
$ curl -XGET 'localhost:9200/_msearch?search_type=count&pretty=1'
--data-binary @requests; echo
{
"responses" : [ {
"took" : 3,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 6,
"max_score" : 0.0,
"hits" : [ ]
},
"facets" : {
"text_t1" : {
"_type" : "terms",
"missing" : 0,
"total" : 6,
"other" : 0,
"terms" : [ {
"term" : "extérieur",
"count" : 2
}, {
"term" : "autre",
"count" : 2
}, {
"term" : "nouveau",
"count" : 1
}, {
"term" : "intérieur",
"count" : 1
} ]
}
}
}, {
"took" : 3,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 10,
"max_score" : 0.0,
"hits" : [ ]
}
} ]
}
Why do I get only text_t1 facet (and not text_t2)?
Why is the hits total different?
Last question: Is it possible to pass the queries as url parameter for a
multisearch (my client doesn't let me define bodies for GET requests)?
Thanks for your help.
Benoît
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.