Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search type = Scan has been deprecated in ElasticSearch 2.1+ #124

Open
AshwinJay opened this issue Nov 7, 2018 · 0 comments
Open

Search type = Scan has been deprecated in ElasticSearch 2.1+ #124

AshwinJay opened this issue Nov 7, 2018 · 0 comments

Comments

@AshwinJay
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant