# Output field in autocomplete suggestion

**URL:** <https://discuss.elastic.co/t/output-field-in-autocomplete-suggestion/70014>\
**Category:** Elasticsearch\
**Created:** [December 26, 2016, 5:10pm UTC](https://discuss.elastic.co/t/output-field-in-autocomplete-suggestion/70014 "2016-12-26T17:10:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlkmhd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mlkmhd/32/22385_2.png) [@mlkmhd](https://discuss.elastic.co/u/mlkmhd)\
**Post date:** [December 26, 2016, 5:10pm UTC](https://discuss.elastic.co/t/output-field-in-autocomplete-suggestion/70014/1 "2016-12-26T17:10:28Z")

</div>

Hi everyone,

when I want to index a document in elasticsearch this problem occurring:  
`message [MapperParsingException[failed to parse]; nested: IllegalArgumentException[unknown field name [output], must be one of [input, weight, contexts]];]`

I know that the `output` field removed from elasticsearch in version 5 but why? and what I have to do for getting single result for inputs?

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [December 26, 2016, 9:01pm UTC](https://discuss.elastic.co/t/output-field-in-autocomplete-suggestion/70014/2 "2016-12-26T21:01:24Z")

</div>

Hi Benjamin,

The best place to learn more about the breaking changes between versions and the reasons for making these changes are the corresponding [Breaking Changes](https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_50_suggester.html) pages of our documentation. In this particular case, you are probably looking for the [Simpler completion indexing](https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_50_suggester.html#_simpler_completion_indexing) section of the page I linked above.

---

<div class="post-metadata">

**Author:** ![iluvcode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iluvcode/32/24929_2.png) [@iluvcode](https://discuss.elastic.co/u/iluvcode)\
**Post date:** [December 28, 2016, 7:33pm UTC](https://discuss.elastic.co/t/output-field-in-autocomplete-suggestion/70014/3 "2016-12-28T19:33:49Z")

</div>

@mlkmhd,  
I had the same issue with completion suggest after upgrading from v1.7.1 to v5.1.  
Using "Text" field in the document fixed the issue.

{  
"\_index": "elasticsearchlocal",  
"\_type": "categoryautocomplete",  
"\_id": "204",  
"\_score": 1,  
"\_source": {  
"nodeId": 204,  
"categoryDescription": {  
"input": [  
"Hair Products",  
"Products Hair"  
],  
"weight": 1  
},  
"text": "Hair Products",  
"id": 204,  
"hasMoreRecord": false,  
"contentTypeId": 0  
}  
}

---

<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:** [January 25, 2017, 7:33pm UTC](https://discuss.elastic.co/t/output-field-in-autocomplete-suggestion/70014/4 "2017-01-25T19:33:49Z")

</div>

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