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
Deprecated field [_routing] used, expected [routing] instead on 6.1.2 #686
Comments
I've seen some places where this is required, but some places also where it hasn't changed from |
@olivere elastic.NewBulkIndexRequest().Index(index_name).Type(log_model).Doc(item_json).Routing(app_name) |
Which version of elastic are you using? The Bulk API has recently been changed. It is Please try to update to elastic.v6@v6.1.2 (or wait a few more hours to go to 6.1.3). That's the version of |
Plus: With 6.1.2 you should get better performance with Bulk API. |
Sorry, I mixed up They really shouldn't change these things in minor releases, at least without documenting it in the breaking changes. I will fix it in elastic@v6.1.4. |
Will be fixed in 6.1.4. It's still only deprecated, and will probably be removed in 7.x. |
gitlab-elasticsearch-indexer uses olivere/elastic currently in version 5. We would like to get rid of deprecation warnings there as well and I already suggested a MR with update to v7. We want to stay compatible with elasticsearch 5.6 though, so update to oliviere/elastic/v7 is questionable. |
@Smasherr Changing this in elastic.v5 due to a (breaking) change in ES 6.x would potentially break all users that use |
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?
Deprecated field [_routing] used, expected [routing] instead on 6.1.2
[ ] elastic.v2 (for Elasticsearch 1.x)
[ ] elastic.v3 (for Elasticsearch 2.x)
[ ] elastic.v5 (for Elasticsearch 5.x)
[* ] elastic.v6 (for Elasticsearch 6.x)
Please describe the expected behavior
change _routing to use routing
Please describe the actual behavior
Deprecated field [_routing] used, expected [routing] instead in deprecation.log
Any steps to reproduce the behavior?
Must appear
The text was updated successfully, but these errors were encountered: