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. :)
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
createdattribute in the response from ES rs-es interprets this as an error and returnsErr. 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
createdto beOption<bool>— this would support both ES version, but it also changes rs-es public API. You can check my change here: jmatraszek@6065461If 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. :)