瀏覽代碼

Fix typo in scroll timeout example

Closes #16075
Jason Tedor 9 年之前
父節點
當前提交
d2ad2e8eee
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/java-api/search.asciidoc

+ 1 - 1
docs/java-api/search.asciidoc

@@ -65,7 +65,7 @@ do {
         //Handle the hit...
     }
 
-    scrollResp = client.prepareSearchScroll(scrollResp.getScrollId()).setScroll(new TimeValue(600000)).execute().actionGet();
+    scrollResp = client.prepareSearchScroll(scrollResp.getScrollId()).setScroll(new TimeValue(60000)).execute().actionGet();
 } while(scrollResp.getHits().getHits().length != 0); // Zero hits mark the end of the scroll and the while loop.
 --------------------------------------------------