问题:
```
Caused by: NotSerializableExceptionWrapper[: Fielddata is disabled on text fields by default. Set fielddata=true on [createTime] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.]; nested: IllegalArgumentException[Fielddata is disabled on text fields by default. Set fielddata=true on [createTime] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.];
```
原因:text类型默认不支持聚合索引.
解决:
启动kibana,执行以下语句
```
PUT /索引/_mapping/类型
{
"properties":{
"字段":{
"type":"text",
"fielddata":true
}
}
}
```
20200603 补充
这种问题大概率是没有手动建表,在es执行插入语句时候,es才自动建立的表。es自动建的表和你预想的不同出现的