Merge pull request #139 from Vineeth-Mohan/patch-1

Typo ( hists -> hits)
This commit is contained in:
Spencer
2014-09-08 10:58:29 -07:00

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