Update quick_start.asciidoc
Fixed the example with the filtered query, missing the top-level `query` parameter
This commit is contained in:
@ -123,6 +123,7 @@ client.search({
|
|||||||
from: (pageNum - 1) * perPage,
|
from: (pageNum - 1) * perPage,
|
||||||
size: perPage,
|
size: perPage,
|
||||||
body: {
|
body: {
|
||||||
|
query: {
|
||||||
filtered: {
|
filtered: {
|
||||||
query: {
|
query: {
|
||||||
match: {
|
match: {
|
||||||
@ -145,7 +146,7 @@ client.search({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, function (error, response) {
|
}, function (error, response) {
|
||||||
if (err) {
|
if (err) {
|
||||||
// handle error
|
// handle error
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user