From 391196eba091364d6bf7349962fdfe84f7ec09b1 Mon Sep 17 00:00:00 2001 From: Vineeth Mohan Date: Sat, 6 Sep 2014 07:56:59 +0530 Subject: [PATCH] Typo ( hists -> hits) Correcting a type --- docs/api_methods.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); });