Typo ( hists -> hits)

Correcting a type
This commit is contained in:
Vineeth Mohan
2014-09-06 07:56:59 +05:30
parent c027fefad5
commit 391196eba0

View File

@ -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);
});