我正在从Facebook图表api使用elasticsearch5 & kibana5基于Facebook的意见仪表板工作。我添加了一些分析字段,它们出现在Kibana的发现部分,但是当进入可视化时,我没有找到这些字段。Kibana可视化不显示分析字段
我的Facebook评论指数:
PUT fb_comments
{
"settings": {
"analysis": {},
"mapping.ignore_malformed": true
},
"mappings": {
"fb_comment": {
"dynamic_templates": [
{
"created_time": {
"match": "created_time",
"mapping": {
"type": "date",
"format": "epoch_second"
}
}
},
{
"message": {
"match": "message",
"mapping": {
"type": "string",
"analyzer": "simple"
}
}
},
{
"strings": {
"match_mapping_type": "string",
"mapping": {
"type": "string",
"index": "not_analyzed"
}
}
}
]
}
}
}
The field message the analyzed one is appearing in discover The field message the analyzed one is not appearing in visualization part
嗨,我不确定,但在弹性5型“字符串”更改为“关键字”,如果不分析和“文本”,如果分析https://www.elastic.co/guide/en/elasticsearch/reference/电流/ text.html 尝试改变映射到: { “字符串”:{ “match_mapping_type”: “串”, “映射”:{ “类型”: “关键字” } } } – Lax