elasticsearch异常maximum allowed to be analyzed for highlighting解决
date
Sep 13, 2020
URL
slug
elasticsearch-maximum-allowed-to-be-analyzed-for-highlighting
status
Published
tags
elasticsearch
es
summary
问题
根据指定字段进行模糊查询,进行查询后报错:
{"type":"illegal_argument_exception","reason":"The length of [message] field of [SY_yKc9yQj6HAx8MKMt1pQ] doc of [syslog] index has exceeded [1000000] - maximum allowed to be analyzed for highlighting. This maximum can be set by changing the [index.highlight.max_analyzed_offset] index level setting. For large texts, indexing with offsets or term vectors is recommended!”}}
type
Post
问题
根据指定字段进行模糊查询,进行查询后报错:
原因
索引偏移量默认是
100000
,当前索引偏移量超过默认值。解决
修改索引偏移量
参考文档: