illegal_argument_exception: startOffset must be non-negative
boling-wang opened this issue · comments
boling-wang commented
PUT jieba_index
{
"settings": {
"analysis": {
"analyzer": {
"jieba_analyzer": {
"tokenizer": "jieba_index"
}
}
}
},
"mappings": {
"fulltext": {
"properties": {
"content": {
"type": "text",
"analyzer": "jieba_analyzer"
}
}
}
}
}
POST jieba_index/fulltext
{"content":"李海林"}
ES 返回:
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "startOffset must be non-negative, and endOffset must be >= startOffset, and offsets must not go backwards startOffset=0,endOffset=3,lastStartOffset=1 for field 'content'"
}
],
"type": "illegal_argument_exception",
"reason": "startOffset must be non-negative, and endOffset must be >= startOffset, and offsets must not go backwards startOffset=0,endOffset=3,lastStartOffset=1 for field 'content'"
},
"status": 400
}
boling-wang commented
P.S.
Elasticsearch version:6.1.0
Jieba plugin基于6.0.0,自己编译的。
zhangcheng commented
@boling-wang 我测试一下
zhangcheng commented
@boling-wang 使用maser分支的。
另外,我已经合并到6.0.0分支
boling-wang commented
验证ok了,多谢快速回复。