# Completion suggester throws exception in ES1.4.1

**URL:** <https://discuss.elastic.co/t/completion-suggester-throws-exception-in-es1-4-1/21058>\
**Category:** Elasticsearch\
**Created:** [December 3, 2014, 12:13pm UTC](https://discuss.elastic.co/t/completion-suggester-throws-exception-in-es1-4-1/21058 "2014-12-03T12:13:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bernd\_Fehling\_2](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@Bernd\_Fehling\_2](https://discuss.elastic.co/u/Bernd_Fehling_2)\
**Post date:** [December 3, 2014, 12:13pm UTC](https://discuss.elastic.co/t/completion-suggester-throws-exception-in-es1-4-1/21058/1 "2014-12-03T12:13:43Z")

</div>

I want to upgrade from ES 1.0.2 and just tried ES1.4.1 but completion  
suggester throws exception:

Caused by: java.lang.ClassCastException:  
org.elasticsearch.index.mapper.core.StringFieldMapper cannot be cast to  
org.elasticsearch.index.mapper.core.CompletionFieldMapper  
at  
org.elasticsearch.search.suggest.completion.CompletionSuggestParser.parse(CompletionSuggestParser.java:103)  
at  
org.elasticsearch.search.suggest.SuggestParseElement.parseInternal(SuggestParseElement.java:90)  
...

This works in ES1.0.2 like a charm.

Request was:  
curl -X POST '[http://localhost:9200/music/\_suggest?pretty](http://localhost:9200/music/_suggest?pretty)' -d '{  
"query": {  
"text": "dan",  
"completion": {  
"size": 9,  
"field": "textsug",  
"fuzzy": {  
"fuzziness": 1  
}  
}  
}  
}'

Any idea why this has been mucked up in ES1.4.1?  
May be there is an deeper case behind it.

Regards  
Bernd

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/03e23df9-e266-49ee-8f16-63172803afac%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/03e23df9-e266-49ee-8f16-63172803afac%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:46am UTC](https://discuss.elastic.co/t/completion-suggester-throws-exception-in-es1-4-1/21058/2 "2017-07-06T00:46:20Z")

</div>


