How does your count query look like?

--
David ;-)
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs


Le 24 févr. 2014 à 04:51, pulkitsinghal <[email protected]> a écrit :

Hello,

I have a bool query with a filter applied to it, which runs against the _search 
endpoint successfully giving "hits.total" but unfortunately it also gives a lot 
more data than that which I don't need.

So I thought of running the same query against the _count endpoint but there I 
received a failure: "BroadcastShardOperationFailedException[[index_test][0] ]; 
nested: QueryParsingException[[index_test] No query registered for [query]]; "

Is there some other lightweight manner in which I can get just "hits.total" 
without the added bloat of each matching doc?

Thanks!
- Pulkit
-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/a1c1e381-3464-4932-8114-977b2e01c304%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/C9753722-16FB-4005-B332-CECE3FED6DF2%40pilato.fr.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to