Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jul 11, 2023 · 0 comments

Comments

@xyydcoo
Copy link

xyydcoo commented Jul 11, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant