canal 使用pk字段,会报'Lucene50' does not exist

yk9xbfzb  于 5个月前  发布在  Lucene
关注(0)|答案(2)|浏览(101)

异常信息
An SPI class of type org.apache.lucene.codecs.PostingsFormat with name 'Lucene50' does not exist

映射信息:
esMapping:
_index: example
pk: _id
upsert: true
sql: "select d.demo_id as _id, d.content as content
from demo as d"
commitBatch: 3000`

问题:
如果使用pk: _id, 就会抛'Lucene50' does not exist异常。 用_id: _id就正常。 是打包时SPI被覆盖了吗? 要怎么解决

ukdjmx9f

ukdjmx9f2#

问题已解决,之后我提一个pull request

相关问题