Skip to content

Commit 4aba49b

Browse files
mariusbancospolyfractal
authored andcommitted
[DOCS] Update search-operations.asciidoc (#520)
search_type=scan is removed in Elasticsearch 5.x
1 parent d16e541 commit 4aba49b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/search-operations.asciidoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ $results = $client->search($params);
221221

222222
=== Scan/Scroll
223223

224-
The Scan/Scroll functionality of Elasticsearch is similar to search, but different in many ways. It works by executing a search query with a `search_type` of `scan`. This initiates a "scan window" which will remain open for the duration of the scan. This allows proper, consistent pagination.
224+
The Scan/Scroll functionality of Elasticsearch is similar to search, but different in many ways. This initiates a "scan window" which will remain open for the duration of the scan. This allows proper, consistent pagination.
225225

226226
Once a scan window is open, you may start `_scrolling` over that window. This returns results matching your query... but returns them in random order. This random ordering is important to performance. Deep pagination is expensive when you need to maintain a sorted, consistent order across shards. By removing this obligation, Scan/Scroll can efficiently export all the data from your index.
227227

@@ -231,7 +231,6 @@ This is an example which can be used as a template for more advanced operations:
231231
----
232232
$client = ClientBuilder::create()->build();
233233
$params = [
234-
"search_type" => "scan", // use search_type=scan
235234
"scroll" => "30s", // how long between scroll requests. should be small!
236235
"size" => 50, // how many results *per shard* you want back
237236
"index" => "my_index",

0 commit comments

Comments
 (0)