我正在使用elasticsearch5和kibana5从facebook graph api开发一个基于facebook评论仪表板。我添加了一些分析的字段,它们出现在 Kibana 的发现部分,但是在进行可视化时我没有找到这些字段。
我的脸书评论索引:
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"
}
}
}
]
}
}
}