hankcs / hanlp-lucene-plugin

HanLP中文分词Lucene插件,支持包括Solr在内的基于Lucene的系统
http://www.hankcs.com/nlp/segment/full-text-retrieval-solr-integrated-hanlp-chinese-word-segmentation.html
Apache License 2.0
296 stars 99 forks source link

solr copyfield index 出错 #32

Closed quicksandznzn closed 6 years ago

quicksandznzn commented 6 years ago

报错内容如下:

Caused by: java.lang.IllegalArgumentException: startOffset must be non-negative, and endOffset must be >= startOffset, and offsets must not go backwards startOffset=3,endOffset=5,lastStartOffset=4 for field 'q'

schema如下 image

quicksandznzn commented 6 years ago
hankcs commented 6 years ago

https://github.com/hankcs/hanlp-lucene-plugin/issues/27 https://github.com/hankcs/hanlp-lucene-plugin/pull/30