Differences in PUT requests in ES versions

Elasticsearch no longer supports specifying multiple document types for an index so I would recommend adding a field to each document that contains the type and use a default type (_doc) as follows:

coin_charts/_doc/bitcoin-1
{
      "currency": "bitcoin",
      "priceUsd": 100,
      "time": 1643139643011
}

You can let Elasticsearch assign document IDs or set them manually yourself.

1 Like