elasticsearch7.x遇到異常

 elasticsearch7 遇到異常代碼片段

doc/1?timeout=1m],%20status%20line%20[HTTP/1.1%20400%20Bad%20Request]
{
	"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=10,endOffset=14,lastStartOffset=20 for field 'content.ikfpy'"
		}],
		"type": "illegal_argument_exception",
		"reason": "startOffset must be non-negative, and endOffset must be >= startOffset, and offsets must not go backwards startOffset=10,endOffset=14,lastStartOffset=20 for field 'content.ikfpy'"
	},
	"status": 400
}

不同版本的elasticsearch對應不同的分詞器,儘量不要去混合使用。

 

解決https://github.com/medcl/elasticsearch-analysis-ik/issues/714

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章