fix count() example
This commit is contained in:
@ -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) {
|
||||||
// ...
|
// ...
|
||||||
});
|
});
|
||||||
---------
|
---------
|
||||||
|
|||||||
@ -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]
|
||||||
|
|||||||
@ -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]
|
||||||
|
|||||||
@ -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]
|
||||||
|
|||||||
@ -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]
|
||||||
|
|||||||
@ -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]
|
||||||
|
|||||||
@ -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]
|
||||||
|
|||||||
@ -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]
|
||||||
|
|||||||
@ -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]
|
||||||
|
|||||||
@ -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]
|
||||||
|
|||||||
@ -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]
|
||||||
|
|||||||
@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user