Skip to content

Indexing fails in ES 6.0+ #117

@jmatraszek

Description

@jmatraszek

I know this is a part of #115, but indexing something using ES 6.0+ is improperly marked as an error by rs-es. The document is added to the index in ES, but due to lack of created attribute in the response from ES rs-es interprets this as an error and returns Err. You can see the docs here:
https://www.elastic.co/guide/en/elasticsearch/reference/5.6/docs-index_.html
https://www.elastic.co/guide/en/elasticsearch/reference/6.0/docs-index_.html

I worked around this issue by changing created to be Option<bool> — this would support both ES version, but it also changes rs-es public API. You can check my change here: jmatraszek@6065461

If think that such a small, gradual change towards supporting ES 6.0+ makes sense, I'd be happy to create a pull request. I'd also understand if you do not wish to merge that as it breaks rs-es public API without fixing the whole issue. :)

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