Merge pull request #249 from zoellner/patch-countExample
updated client.count example
This commit is contained in:
@ -23,6 +23,7 @@ client.count({
|
|||||||
client.count(
|
client.count(
|
||||||
index: 'index_name',
|
index: 'index_name',
|
||||||
body: {
|
body: {
|
||||||
|
query: {
|
||||||
filtered: {
|
filtered: {
|
||||||
filter: {
|
filter: {
|
||||||
terms: {
|
terms: {
|
||||||
@ -31,6 +32,7 @@ client.count(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}, function (err, response) {
|
}, function (err, response) {
|
||||||
// ...
|
// ...
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user