在业务系统中,遇到过两个问题:
问题1:设置为keyword类型的字段,插入很长的大段内容后,报字符超出异常,无法插入。
问题2:检索超过ignore_above设定长度的字段后,无法返回结果。

思考:Elasticsearch单字段支持的最大字符数?

设置ignore_above之后引申的问题:

1、ignore_above的作用?

ES中用于设置超过设定字符后,不被索引或者存储。
Strings longer than the ignore_above setting will not be indexed or stored.

2、ignore_above用法:

PUT ali_test{  "mappings": {  "ali_type": {  "properties": {  "url": {  "type":"ke
收藏 打印