rs-es
rs-es copied to clipboard
Search type = Scan has been deprecated in ElasticSearch 2.1+
The Scan API has been deprecated and in 5.6+ it throws the following error. I know that #6 is open to support more recent versions of ES, but I thought I should point out that some APIs do not work in 5.x.
let scroll = Duration::minutes(1);
let mut scan_result: ScanResult<TestDocument> = client
.search_query()
.with_query(&query)
.with_indexes(&indexes)
.with_size(100)
.scan(&scroll)
.unwrap();
`Err` value: EsServerError("400 Bad Request - {\"error\":{\"root_cause\":[{\"type\":\"illegal_argument_exception\",\"reason\":\"No search type for [scan]\"}],\"type\":\"illegal_argument_exception\",\"reason\":\"No search type for [scan]\"},\"status\":400}")', libcore/result.rs:945:5
Thanks.