infinilabs/analysis-pinyin

添加拼音和中文混合的数据时报错 startOffset must be non-negative, and endOffset must be >= startOffset, and offsets must not go backwards startOffset=0,endOffset=3,lastStartOffset=1 for field 'profile._index_prefix

Opened this issue · 1 comments

版本7.8.0
创建索引
PUT /person { "settings": { "analysis": { "analyzer": { "ik_pinyin_analyzer": { "type": "custom", "tokenizer": "ik_max_word", "filter": [ "my_pinyin" ] } }, "filter": { "my_pinyin": { "type": "pinyin", "keep_full_pinyin": false, "keep_joined_full_pinyin": true, "keep_original": true, "limit_first_letter_length": 16, "lowercase": true, "remove_duplicated_term": true, "ignore_pinyin_offset": false, "keep_separate_first_letter": false } } } }, "mappings": { "properties": { "username": { "type": "keyword", "fields": { "pinyin": { "type": "search_as_you_type", "analyzer": "ik_pinyin_analyzer" } } }, "profile": { "type": "search_as_you_type", "analyzer": "ik_pinyin_analyzer" }, "tags": { "type": "text" }, "remark": { "type": "text" } } } }
插入一条带拼音和中文的数据
image
报错
image