No handler for type [text] declared on field [title] (python elasticsearch)


(Chocolate9624) #1

Hi, all
The python elasticsearch version I used is

import elasticsearch
print elasticsearch.version
(5, 0, 1)

the mappings is
request_body = {
'mappings':{
'post': {
'properties': {
'title': {
'type': 'text',
}
}
}
}
}

Should I install the elasticsearch written by java ?

Thanks a lot!


(Xavier Facq) #2

What for ? Can you explain a little your problem please ?


(Chocolate9624) #3

Thanks! I find the reason. My es installed is 2.x not 5.x.


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.