Dinosaurius
Dinosaurius

Reputation: 8628

How to delete the old content of Elasticsearch each time I save the new content?

I use PutElasticsearch in order to save the content of FlowFile in Elasticsearch. However, in this case, I always append the mapping of Elasticsearch. How can I always previously delete the existing content of the mapping and then save the new one, i.e. the content of FlowFile?

Upvotes: 0

Views: 154

Answers (1)

alpert
alpert

Reputation: 4655

The data in Elasticsearch is immutable. So if you insert new data with the same id the data will be overriden. So you must use same id.

Upvotes: 1

Related Questions