elasticsearch data increase & duplicate at each restart

后端 未结 1 525
时光说笑
时光说笑 2020-12-21 11:54

I\'m using elasticsearch with angularjs and oracle on windows 7. it\'s working more & more finer ( thanks to stackoverflower help ). I have a problem with elasticsearch:

相关标签:
1条回答
  • 2020-12-21 12:03

    Resolved thanks to Konstantin V. Salikhov.

    Each time elasticsearch service start it query the database with the sql provided to the _river and get the data ( see me previous "query oracle and index data : "). If the data don't have an "_id" column _river can't determine which records it have already loaded and the data is duplicated each time. To avoid duplicate i edit my "all_specimens_data" table in database ( who is in fact a view to avoid modification o database) and rename "O_OCCURRENCEID" to "_id", "O_OCCURRENCEID" is my primary key UUID.

    hope this help other

    0 讨论(0)
提交回复
热议问题