Fix scroll api documentation

This example does not work without: "search_type: 'scan'"
(cherry picked from commit 5fc844b7c5)
This commit is contained in:
Wouter Meek
2014-12-08 16:48:07 +01:00
committed by spalger
parent dae7d94708
commit ac56e8efab

View File

@ -1553,6 +1553,7 @@ var allTitles = [];
// first we do a search, and specify a scroll timeout
client.search({
index: 'myindex',
search_type: 'scan',
// Set to 30 seconds because we are calling right back
scroll: '30s',
fields: ['title'],