Count request does not support [filter]. Why?

Count request does not support [filter]. Why? How to count with the same
filter (except for "size", "fields", "from") and query I'm probably going
to search hits after counting?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/290e2be1-6f48-4266-a02e-4c8ff7620225%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hey,

not a hundred percent sure, what you mean here. The post_filter setting?
There are two possibilities: Either use the search_type=count or use a
filtered query in the count API. See

Also, be aware that the execution models are a bit different (which may
result in different performance), see

Hope this helps, if not please refine your questions

--Alex

On Thu, Jun 19, 2014 at 3:23 PM, Andrew Gaydenko andrew.gaydenko@gmail.com
wrote:

Count request does not support [filter]. Why? How to count with the same
filter (except for "size", "fields", "from") and query I'm probably going
to search hits after counting?

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/290e2be1-6f48-4266-a02e-4c8ff7620225%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/290e2be1-6f48-4266-a02e-4c8ff7620225%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM9oHqQVvAbnh4pTRvtv%3DhzZJmq6YWnRjnkcRSXNqiVbcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Sorry, I wasn't clear enough. I mean Java client's CountRequest.source()'s
argument content, "{ filter: ... }" in particular.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b402f868-eeaf-484a-9081-75e81b7f5aed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.