# Elastic 5 suggester output normalization

**URL:** <https://discuss.elastic.co/t/elastic-5-suggester-output-normalization/66727>\
**Category:** Elasticsearch\
**Created:** [November 21, 2016, 1:50pm UTC](https://discuss.elastic.co/t/elastic-5-suggester-output-normalization/66727 "2016-11-21T13:50:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lessless](https://avatars.discourse-cdn.com/v4/letter/l/bc8723/32.png) [@lessless](https://discuss.elastic.co/u/lessless)\
**Post date:** [November 21, 2016, 1:50pm UTC](https://discuss.elastic.co/t/elastic-5-suggester-output-normalization/66727/1 "2016-11-21T13:50:20Z")

</div>

Hello!

Previously we used `output` option to normalize suggestion query results as following:

```
{
  city_suggestion: {input: [city], weight: 1},
  district_suggestion: {input: [district], output: city + ' ' + district, weight: 10},
}

```

So, if district matched it was returned together with a city, but now, since `output` option was dropped, are we expected to move this logic to the application layer or stick with 2.x branch? 😄

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [November 22, 2016, 10:33am UTC](https://discuss.elastic.co/t/elastic-5-suggester-output-normalization/66727/2 "2016-11-22T10:33:36Z")

</div>

Citing [https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking\_50\_suggester.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_50_suggester.html)

> As suggestions are document-oriented, suggestion metadata (e.g. output) should now be specified as a field in the document. The support for specifying output when indexing suggestion entries has been removed. Now suggestion result entry’s text is always the un-analyzed value of the suggestion’s input (same as not specifying output while indexing suggestions in pre-5.0 indices).

Hope this helps,  
Isabel

---

<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:** [December 20, 2016, 10:33am UTC](https://discuss.elastic.co/t/elastic-5-suggester-output-normalization/66727/3 "2016-12-20T10:33:43Z")

</div>

Closed on December 20, 2016, 10:33am UTC

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