一尘不染

在JDBC River中如何停止管家不删除记录?

elasticsearch

当JDBC River进行轮询时,内务处理将删除记录块。

有人知道解决方案。我想停止删除记录。

有关更多参考:-https
//github.com/jprante/elasticsearch-river-
jdbc/issues/61

阅读 235

收藏
2020-06-22

共1个答案

一尘不染

看家的工作是停止,如果版本被禁止versioning: falseJDBC河参数,这是默认的。

{
    "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 是否在Elasticsearch索引文档中使用版本控制

通过引用:-https : //github.com/jprante/elasticsearch-
river-
jdbc/issues/133#issuecomment-30148180

2020-06-22