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

**URL:** <https://discuss.elastic.co/t/no-handler-for-type-text-declared-on-field-title-python-elasticsearch/71630>\
**Category:** Elasticsearch\
**Created:** [January 15, 2017, 3:07am UTC](https://discuss.elastic.co/t/no-handler-for-type-text-declared-on-field-title-python-elasticsearch/71630 "2017-01-15T03:07:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chocolate9624](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@chocolate9624](https://discuss.elastic.co/u/chocolate9624)\
**Post date:** [January 15, 2017, 3:07am UTC](https://discuss.elastic.co/t/no-handler-for-type-text-declared-on-field-title-python-elasticsearch/71630/1 "2017-01-15T03:07:39Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![xavierfacq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xavierfacq/32/8744_2.png) [@xavierfacq](https://discuss.elastic.co/u/xavierfacq)\
**Post date:** [January 16, 2017, 3:08pm UTC](https://discuss.elastic.co/t/no-handler-for-type-text-declared-on-field-title-python-elasticsearch/71630/2 "2017-01-16T15:08:52Z")

</div>

> [@chocolate9624](#):
>
> Should I install the elasticsearch written by java ?

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

---

<div class="post-metadata">

**Author:** ![chocolate9624](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@chocolate9624](https://discuss.elastic.co/u/chocolate9624)\
**Post date:** [January 20, 2017, 6:06am UTC](https://discuss.elastic.co/t/no-handler-for-type-text-declared-on-field-title-python-elasticsearch/71630/3 "2017-01-20T06:06:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 17, 2017, 6:06am UTC](https://discuss.elastic.co/t/no-handler-for-type-text-declared-on-field-title-python-elasticsearch/71630/4 "2017-02-17T06:06:57Z")

</div>

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