Deprecated: Use the official Elasticsearch client for Go at https://github.com/elastic/go-elasticsearch
7.39k
stars
1.15k
forks
source link
elastic: Error 400 (Bad Request): only write ops with an op_type of create are allowed in data streams [type=illegal_argument_exception] #1673
Open
xyydcoo opened 1 year ago
ES version : 7.14.2 Branch : "github.com/olivere/elastic/v7" Code : response, err := c.clt.Update(). Index(c.cfg.IndexName). Id(info.DataID). DocAsUpsert(true). Doc(values). Do(ctx)
Which version of Elastic are you using?
[✅ ] 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)