I need to update a mapping with additional fields, but decided to create an experimental map first and write documents to it to weed out the problems. As it happened, the whole thing worked first time of asking, but then the next document didn't.
When I checked, the document was in the original: "bookmarks_en_v1" and not: "bookmarks_en_v1-1".
Kibana also refused to allow me to add the index pattern: "bookmarks_en_v1-1" after removing it, in spite of the fact that it was there (I've checked in Postman).
So I deleted the experiment, renamed it to: "bookmarks_en_v1_1" and started again, where this time three documents were written before it again switched to the original, and — as before — refused to write to the experiment again.
Again, I changed the index name, this time to: "experiment", and the type to: "experiment", where it wrote once and then no more, writing — again — to the original.
There is no mention of the original index: "bookmarks_en_v1" anywhere in the application (I've used the built-in search services in the IDE, and besides, I'm passing the index names as variables).
It's worth noting this is a mature application that's been using Elastic without error since 5.6.
This behaviour is inexplicable, and — according to the code — impossible, too.
I'm using Elastic 6.2.4, and Kibana of the same version.