I want to update my index by importing a .csv file via Logstash. Currently, the plan is to delete all the records from the index and then reimport the new .csv file from scratch. But I was wondering if it's possible to just update the index by importing the updated .csv file without deleting the records?
If your initial import provided document ids, and did not rely on Elasticsearch generating document ids for you, then this can be done by routing to the same index and providing the Elasticsearch output with both
action => update (and possibly
doc_as_upsert => true, depending on how you want to handle new records).
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.