fix count() example

This commit is contained in:
spalger
2016-01-04 10:08:14 -07:00
parent f140745527
commit 5fd9c7da49
12 changed files with 24 additions and 13 deletions

View File

@ -20,7 +20,7 @@ client.count({
.Get the number of documents matching a query .Get the number of documents matching a query
[source,js] [source,js]
--------- ---------
client.count( client.count({
index: 'index_name', index: 'index_name',
body: { body: {
query: { query: {
@ -36,4 +36,4 @@ client.count(
}, function (err, response) { }, function (err, response) {
// ... // ...
}); });
--------- ---------

View File

@ -122,7 +122,7 @@ client.count({
.Get the number of documents matching a query .Get the number of documents matching a query
[source,js] [source,js]
--------- ---------
client.count( client.count({
index: 'index_name', index: 'index_name',
body: { body: {
query: { query: {
@ -141,6 +141,7 @@ client.count(
--------- ---------
*Params* *Params*
[horizontal] [horizontal]

View File

@ -124,7 +124,7 @@ client.count({
.Get the number of documents matching a query .Get the number of documents matching a query
[source,js] [source,js]
--------- ---------
client.count( client.count({
index: 'index_name', index: 'index_name',
body: { body: {
query: { query: {
@ -143,6 +143,7 @@ client.count(
--------- ---------
*Params* *Params*
[horizontal] [horizontal]

View File

@ -126,7 +126,7 @@ client.count({
.Get the number of documents matching a query .Get the number of documents matching a query
[source,js] [source,js]
--------- ---------
client.count( client.count({
index: 'index_name', index: 'index_name',
body: { body: {
query: { query: {
@ -145,6 +145,7 @@ client.count(
--------- ---------
*Params* *Params*
[horizontal] [horizontal]

View File

@ -126,7 +126,7 @@ client.count({
.Get the number of documents matching a query .Get the number of documents matching a query
[source,js] [source,js]
--------- ---------
client.count( client.count({
index: 'index_name', index: 'index_name',
body: { body: {
query: { query: {
@ -145,6 +145,7 @@ client.count(
--------- ---------
*Params* *Params*
[horizontal] [horizontal]

View File

@ -126,7 +126,7 @@ client.count({
.Get the number of documents matching a query .Get the number of documents matching a query
[source,js] [source,js]
--------- ---------
client.count( client.count({
index: 'index_name', index: 'index_name',
body: { body: {
query: { query: {
@ -145,6 +145,7 @@ client.count(
--------- ---------
*Params* *Params*
[horizontal] [horizontal]

View File

@ -126,7 +126,7 @@ client.count({
.Get the number of documents matching a query .Get the number of documents matching a query
[source,js] [source,js]
--------- ---------
client.count( client.count({
index: 'index_name', index: 'index_name',
body: { body: {
query: { query: {
@ -145,6 +145,7 @@ client.count(
--------- ---------
*Params* *Params*
[horizontal] [horizontal]

View File

@ -126,7 +126,7 @@ client.count({
.Get the number of documents matching a query .Get the number of documents matching a query
[source,js] [source,js]
--------- ---------
client.count( client.count({
index: 'index_name', index: 'index_name',
body: { body: {
query: { query: {
@ -145,6 +145,7 @@ client.count(
--------- ---------
*Params* *Params*
[horizontal] [horizontal]

View File

@ -126,7 +126,7 @@ client.count({
.Get the number of documents matching a query .Get the number of documents matching a query
[source,js] [source,js]
--------- ---------
client.count( client.count({
index: 'index_name', index: 'index_name',
body: { body: {
query: { query: {
@ -145,6 +145,7 @@ client.count(
--------- ---------
*Params* *Params*
[horizontal] [horizontal]

View File

@ -126,7 +126,7 @@ client.count({
.Get the number of documents matching a query .Get the number of documents matching a query
[source,js] [source,js]
--------- ---------
client.count( client.count({
index: 'index_name', index: 'index_name',
body: { body: {
query: { query: {
@ -145,6 +145,7 @@ client.count(
--------- ---------
*Params* *Params*
[horizontal] [horizontal]

View File

@ -126,7 +126,7 @@ client.count({
.Get the number of documents matching a query .Get the number of documents matching a query
[source,js] [source,js]
--------- ---------
client.count( client.count({
index: 'index_name', index: 'index_name',
body: { body: {
query: { query: {
@ -145,6 +145,7 @@ client.count(
--------- ---------
*Params* *Params*
[horizontal] [horizontal]

View File

@ -122,7 +122,7 @@ client.count({
.Get the number of documents matching a query .Get the number of documents matching a query
[source,js] [source,js]
--------- ---------
client.count( client.count({
index: 'index_name', index: 'index_name',
body: { body: {
query: { query: {
@ -141,6 +141,7 @@ client.count(
--------- ---------
*Params* *Params*
[horizontal] [horizontal]