diff --git a/docs/api_methods.asciidoc b/docs/api_methods.asciidoc index c57ad3281..69a969cce 100644 --- a/docs/api_methods.asciidoc +++ b/docs/api_methods.asciidoc @@ -233,9 +233,9 @@ client.count({ .Get the number of documents matching a query [source,js] --------- -client.count( +client.count({ index: 'index_name', - body: { + query: { filtered: { filter: { terms: {