Elasticsearch API 统计出错(Fielddata is disabled on text fields by default.)
2017-06-20 20:46
639 查看
这个实在运行例子https://elasticsearch.cn/book/elasticsearch_definitive_guide_2.x/_analytics.html 的时候
这是由于fielddata是默认关闭的,需要开启。
CURL PUT http://localhost:9200/youindex/_mapping/youtype
{
“properties”: {
“field”: {
“type”: “text”,
“fielddata”: true
}
}
}
如图
这是由于fielddata是默认关闭的,需要开启。
CURL PUT http://localhost:9200/youindex/_mapping/youtype
{
“properties”: {
“field”: {
“type”: “text”,
“fielddata”: true
}
}
}
如图
相关文章推荐
- es进行聚合操作时提示Fielddata is disabled on text fields by default
- java.lang.IllegalArgumentException: Fielddata is disabled on text fields by default. Set fielddata=t
- es进行聚合操作时提示Fielddata is disabled on text fields by default
- es进行聚合操作时提示Fielddata is disabled on text fields by default
- Elasticsearch5.X进行聚合操作时提示Fielddata is disabled on text fields by default
- 聚合操作错误:Fielddata is disabled on text fields by default. Set fielddata=true
- Fielddata is disabled on text fields by default(keyword 可避免错误)
- ElasticSearch fielddata is disabled on text fields by default. set fielddata=true on interests
- (转)es进行聚合操作时提示Fielddata is disabled on text fields by default
- Enable Fielddata On Text Fields
- Elasticsearch: Field data loading is forbidden on [geoip.city_name]
- Why the default eth0 interface is down by default on CentOS?
- 在Elasticsearch中对 text 类型的字段进行聚合异常Fielddata is disabled,Set fielddata=true
- Request header field attachmentdata is not allowed by Access-Control-Allow-Headers in preflight resp
- 排错Package restore is disabled by default. To give consent, open the Visual Studio Options dialog
- Nuget 报错:Package restore is disabled by default.解决办法
- Raphael.js API 之Element.remove(),Element.removeData(),paper.text(),Element.node(),Element.onDragOver
- magento提示Exception printing is disabled by default for security reasons.
- magento提示Exception printing is disabled by default for security reasons.
- magento提示Exception printing is disabled by default for security reasons.