Java api: deprecate the count api in favour of search with size 0

Relates to #13928
Closes #14165
This commit is contained in:
javanna 2015-10-16 18:19:02 +02:00 committed by Luca Cavanna
parent e8dec0ff54
commit 20a62b4670
11 changed files with 44 additions and 14 deletions

View file

@ -1,6 +1,8 @@
[[count]]
== Count API
deprecated[2.1.0, Use the `search` api instead and set `size` to `0`]
The count API allows one to easily execute a query and get the number of
matches for that query. It can be executed across one or more indices
and across one or more types. The query can be provided using the