diff --git a/docs/api_methods.asciidoc b/docs/api_methods.asciidoc index 0fc5491c5..8c35aadd9 100644 --- a/docs/api_methods.asciidoc +++ b/docs/api_methods.asciidoc @@ -1557,7 +1557,7 @@ client.search({ q: 'title:test' }, function getMoreUntilDone(error, response) { // collect the title from each response - response.hits.hists.forEach(function (hit) { + response.hits.hits.forEach(function (hit) { allTitles.push(hit.fields.title); });