Skip to content

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

@AshwinJay

Description

@AshwinJay

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions