Update document's routing key


I want to know if it's actually possible to update the routing key of a
I've try the _update method, without providing the routing parameter, with
the routing set to the old routing key, with the routing set to the new
routing key.
I've also try to re-index the document, again without the routing
parameter, with routing set to old/new routing key.
Nothing works, it keep throwing: MapperParsingException[External routing
[b62e540c7db319bcbeb9acbb3cbf9854] and document path routing
[delete_b62e540c7db319bcbeb9acbb3cbf9854] mismatch].

Any idea?
From what I see, it does not really seems to be possible to update the
routing key of a document.

Another question also: Can the routing key be an empty string?
(the document represents a user of my API, the routing key is the API key,
and when "deleting" the user, I was simply setting its API key to an empty

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

1 Like