Deprecated field [_routing] used, expected [routing] instead

Getting the following warning with 6.1.2:

[WARN ][org.elasticsearch.deprecation.common.ParseField] Deprecated field [_routing] used, expected [routing] instead

But the docs still show that _routing is correct?
https://www.elastic.co/guide/en/elasticsearch/reference/6.1/mapping-routing-field.html

I'm not sure where this field name needs to be adjusted...

A little more info on how this is being sent:

POST _bulk
{ "index" : { "_id" : 23, "_routing" : 4 } }

The correct link you're looking for is this one: https://www.elastic.co/guide/en/elasticsearch/reference/6.1/docs-bulk.html#bulk-routing

Just use routing instead of _routing in your bulk call and you'll be fine

POST _bulk
{ "index" : { "_id" : 23, "routing" : 4 } }
                           ^
                           |
                   remove underscore

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.