【发布时间】:2018-11-04 01:20:43
【问题描述】:
所有。 我使用的python elasticsearch版本是
import elasticsearch
print elasticsearch.__version__
(5, 0, 1)
映射是
request_body = {
'mappings':{
'post': {
'properties': {
'title': {
'type': 'text',
}
}
}
}
}
错误是:
{u'status': 400, u'error': {u'caused_by': {u'reason': u'No handler for type [text] 在字段 [title]' 上声明,u'type': u'mapper_parsing_exception'}, u'root_cause': [{u'reason': u'没有处理程序 对于在字段 [title]' 上声明的类型 [text],u'type': u'mapper_parsing_exception'}],u'type':u'mapper_parsing_exception', u'reason': u'Failed to parse mapping [post]: No handler for type 在字段 [title]'}}
上声明的 [text]
为什么es 5.0不能识别“文本”类型?我的设置有什么问题? 非常感谢!
【问题讨论】:
标签: python elasticsearch