@H_404_1@所有.
我使用的python elasticsearch版本是 @H_404_1@
非常感谢!
我使用的python elasticsearch版本是 @H_404_1@
import elasticsearch
print elasticsearch.__version__
(5,1)
@H_404_1@映射是
@H_404_1@
request_body = {
'mappings':{
'post': {
'properties': {
'title': {
'type': 'text',}
}
}
}
}
@H_404_1@错误是:
@H_404_1@
@H_404_1@{u’status’: 400,u’error’: {u’caused_by’: {u’reason’: u’No handler for@H_404_1@为什么es 5.0无法识别“文本”类型?我的设置有什么问题?
type [text] declared on field [title]’,u’type’:
u’mapper_parsing_exception’},u’root_cause’: [{u’reason’: u’No handler
for type [text] declared on field [title]’,u’type’:
u’mapper_parsing_exception’}],u’type’: u’mapper_parsing_exception’,
u’reason’: u’Failed to parse mapping [post]: No handler for type
[text] declared on field [title]’}}
非常感谢!
最佳答案