olivere / elastic

Deprecated: Use the official Elasticsearch client for Go at https://github.com/elastic/go-elasticsearch
https://olivere.github.io/elastic/
MIT License
7.39k stars 1.15k forks source link

v7 can't support elasticsearch v6? #1644

Open Chu-J opened 2 years ago

Chu-J commented 2 years ago

Please use the following questions as a guideline to help me answer your issue/question without further inquiry. Thank you.

Which version of Elastic are you using?

[X ] elastic.v7 (for Elasticsearch 7.x) [ ] elastic.v6 (for Elasticsearch 6.x) [ ] elastic.v5 (for Elasticsearch 5.x) [ ] elastic.v3 (for Elasticsearch 2.x) [ ] elastic.v2 (for Elasticsearch 1.x)

Please describe the expected behavior

we will upgrade es7

Please describe the actual behavior

up, err := cli.Update().
    Index(UserIndex).
    Type("_doc").
    Id("10977524101399128").
    Doc(map[string]interface{}{"s1": 1}).
    Do(context.Background())

elastic: Error 500 (Internal Server Error): execution_exception: MapperException[timed out while waiting for a dynamic mapping update] [type=execution_exception]

Any steps to reproduce the behavior?

Chu-J commented 2 years ago

image