我在我的文档中有3个JSON键值对,我插入elasticsearch并使用Kibana4进行可视化。3个JSON键是NT
,XT
和YT
。所有三个键的值通常在100到1000之间。一些典型值是543
,328
和753
。当我看到Kibana4中的按键时,我得到以上三个按键中的每一个的警告。Kibana4:分析字符串字段警告
This is an analyzed string field.Analyzed string fields are highly unique and can use a lot of memory to visualize
在试图解决上述问题我已经使用了以下外壳脚本来创建在包含这些键弹性搜索该document type
的映射。
我elasticsearch指数bits
和我的文档类型为nts
,我想类型nts
即NT
,XT
和YT
的文件中指定类型long
3个JSON键。
#!/bin/bash
curl -XPUT 'http://localhost:9200/bits/nts/_mapping' -d '
{
"events" : {
"dynamic" : "strict",
"properties" : {
"NT" : {
type : "long"
},
"XT" : {
type : "long"
},
"YT" : {
type : "long"
}
}
},
}'
上述映射不解决这个问题,我仍然得到analyzed string field
警告。有人能指出什么可能是错的吗?