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


#1

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...


#2

A little more info on how this is being sent:

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

(Val Crettaz) #3

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

(system) #4

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