在 Mapping 里面,将 dynamic 参数设置成 strict 可以拒绝索引包含未知字段的文档。 此条 Tips 由 medcl 贡献。

es 导入数据内容超长错误 怎么处理 (在不截取内容的情况下)可以调整es设置吗?

Elasticsearch | 作者 人达影射 | 发布于2014年12月02日 | 阅读数:6331

具体错误如下:

[error] => IllegalArgumentException[Document contains at least one immense term in field="article_content" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped. Please correct the analyzer to not produce such terms. The prefix of the first immense term is: '[-28, -72, -109, -23, -94, -104, -26, -118, -91, -23, -127, -109, -23, -94, -124, -25, -125, -83, -26, -72, -72, -24, -82, -80, 49, -17, -68, -102, -23, -90]...', original message: bytes can be at most 32766 in length; got 44113]; nested: MaxBytesLengthExceededException[bytes can be at most 32766 in length; got 44113];
已邀请:

dxyz - 突然觉得找个心态好 可以LOL边瞎扯的朋友也不错。。有同感的可以扯扯

赞同来自:

解决了么大佬,分享一下哇

要回复问题请先登录注册