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

时间:2013-11-14 11:32:50

标签: elasticsearch elasticsearch-jdbc-river

当JDBC River进行轮询时,内务处理作业会删除大量记录。

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

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

1 个答案:

答案 0 :(得分:0)

如果JDBC river parameters中的versioning: false停用了版权,则会停止内务管理作业,这是默认设置。

{
    "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