spicylobe
(spicylobe)
April 4, 2014, 11:06pm
1
Based on the following, filtered queries clearly should be supported for
the _count endpoint.
http://www.elasticsearch.org/guide/en/elasticsearch/client/javascript-api/current/api-reference.html#api-count
Whenever I use "filtered" instead of a "query", I always get an error like:
QueryParsingException[[a] request does not support [filtered]];
Get the gist:
Is the documentation wrong, or I am constructing this query incorrectly?
--
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/4326a216-1ffe-4c0b-bb7a-6ddd7a74a4fc%40googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
Binh_Ly_2
(Binh Ly-2)
April 9, 2014, 1:28pm
2
Try putting filtered inside query, for example:
{
"query": {
"filtered": {
"filter": {
"match_all": {}
}
}
}
}
--
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/8c469a43-615f-4f13-a9af-e5fd68fd18e4%40googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
This worked! I think the docs should be updated though, they are still
wrong at:
http://www.elasticsearch.org/guide/en/elasticsearch/client/javascript-api/current/api-reference.html#api-count
--
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/404955b1-c408-474e-b373-edad34ce99aa%40googlegroups.com .
For more options, visit https://groups.google.com/d/optout .