infinilabs / analysis-pinyin

🛵 This Pinyin Analysis plugin is used to do conversion between Chinese characters and Pinyin.
Apache License 2.0
2.94k stars 547 forks source link

开启ignore_pinyin_offset=false后,写入数组时offset没有递增报错bugfix #229

Open wushuaiwangyin opened 4 years ago

wushuaiwangyin commented 4 years ago

开启ignore_pinyin_offset=false后,写入数组时offset没有递增报错lucene startOffset must be non-negative, and endOffset must be >= startOffset, and offsets must not go backwards。 通过把lastoffset传递给下个数组元素来解决。