elasticsearch-jdbc icon indicating copy to clipboard operation
elasticsearch-jdbc copied to clipboard

Sync delete data

Open xuxiang opened this issue 8 years ago • 2 comments

When I delete the data in the database, can I delete the data in the es? Schedule can only add to the database of new data, the database has been deleted in the ES will not be deleted, I would ask what the solution?

xuxiang avatar Sep 18 '16 10:09 xuxiang

If data is deleted, and you want the new data indexed, the best method is to create a new index, push all data to it, and then drop old index.

Current version of JDBC importer does not maintain state between runs, and it does not manage Elasticsearch index creating/dropping.

jprante avatar Sep 18 '16 10:09 jprante

@jprante Thank you for your reply,One more question,I don't understand the difference between schedule, interval, and flush_interval,can you Give an example to explain,thanks

xuxiang avatar Sep 19 '16 01:09 xuxiang