Update quick_start.asciidoc

Fixed the example with the filtered query, missing the top-level `query` parameter
This commit is contained in:
Clinton Gormley
2015-06-08 11:45:24 +02:00
parent eebd7d117b
commit 6871d4bc0d

View File

@ -123,6 +123,7 @@ client.search({
from: (pageNum - 1) * perPage,
size: perPage,
body: {
query: {
filtered: {
query: {
match: {
@ -145,7 +146,7 @@ client.search({
}
}
}
}, function (error, response) {
}, function (error, response) {
if (err) {
// handle error
return;