In JDBC River how to stop housekeeping not to delete records?

最后都变了- 提交于 2019-12-02 10:59:20

The housekeeping job is stop if versioning is disabled by versioning: false in the JDBC river parameters, which is the default.

{
    "jdbc" :{
    "strategy" : "oneshot",
    "driver" : null,
    "url" : null,
    "user" : null,
    "password" : null,
    "sql" : null,
    "sqlparams" : null,
    "poll" : "1h",
    "rounding" : null,
    "scale" : 0,
    "autocommit" : false,
    "fetchsize" : 10,
    "max_rows" : 0,
    "max_retries" : 3,
    "max_retries_wait" : "10s",
    "locale" : Locale.getDefault().toLanguageTag(),
    "digesting" : true,
    "acksql" : null,
    "acksqlparams" : null          
    },
    "index" : {
    "index" : "jdbc",
    "type" : "jdbc",
    "bulk_size" : 100,
    "max_bulk_requests" : 30,
    "index_settings" : null,
    "type_mapping" : null,
    "versioning" : false,  
    "acknowledge" : false,
    }
}

"versioning": true if versioning should be used in the Elasticsearch indexed documents

By Reference :- https://github.com/jprante/elasticsearch-river-jdbc/issues/133#issuecomment-30148180

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!