From ac56e8efab9aa8a8f9f97e3553c298fbc75fdee9 Mon Sep 17 00:00:00 2001 From: Wouter Meek Date: Mon, 8 Dec 2014 16:48:07 +0100 Subject: [PATCH] Fix scroll api documentation This example does not work without: "search_type: 'scan'" (cherry picked from commit 5fc844b7c5ee05aa9d45b496b158dd7da7b7258f) --- docs/api_methods.asciidoc | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api_methods.asciidoc b/docs/api_methods.asciidoc index 35b5f7837..527703381 100644 --- a/docs/api_methods.asciidoc +++ b/docs/api_methods.asciidoc @@ -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'],