我正在按如下方式创建一条河流,并且当我创建记录时会正确编制索引。但它不是轮询,也就是说,如果我添加一条新记录,它不会反映在索引中。
{
"type" : "jdbc",
"jdbc" : {
"driver" : "com.mysql.jdbc.Driver",
"url" : "jdbc:mysql://localhost:3306/test",
"user" : "[user]",
"password" : "[password]",
"sql" : "select PersonID as _id, LastName, FirstName, City from test.persons",
"strategy" : "simple",
"poll" : "6s",
"index" : "global",
"type" : "persons",
"bulk_size" : 100,
"autocommit": true
}
}
配置中可能有什么问题?