Percolate : msearch with count


(Aravind) #1

Hi,

I could perform count with the percolate query, just like this -

curl -XGET "http://localhost:9200/car/_count" -H 'Content-Type: application/json' -d '{"query" : { "percolate" : {"field": "criteria", "index" : "rev", "type" : "default", "id" :777} } }'

I could also perform bulk search with percolate query, just like this -

curl -XGET "http://localhost:9200/_msearch" -H 'Content-Type: application/json' -d'
{ "index" : "car"}
{"query" : { "percolate" : {"field": "criteria", "index" : "rev", "type" : "default", "id" : 777 } } }
{ "index" : "car"}
{"query" : { "percolate" : {"field": "criteria", "index" : "rev", "type" : "default", "id" : 888 } } }
'
But I would like to perform count with msearch in a percolate query. How do I achieve this ?

Appreciate any help !


(Aravind) #2

Any help please ?


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.