# How to used suggest 5.x

**URL:** <https://discuss.elastic.co/t/how-to-used-suggest-5-x/95262>\
**Category:** Elasticsearch\
**Created:** [August 1, 2017, 1:37am UTC](https://discuss.elastic.co/t/how-to-used-suggest-5-x/95262 "2017-08-01T01:37:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ridorido](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@ridorido](https://discuss.elastic.co/u/ridorido)\
**Post date:** [August 1, 2017, 1:37am UTC](https://discuss.elastic.co/t/how-to-used-suggest-5-x/95262/1 "2017-08-01T01:37:43Z")

</div>

I`m converting 1.7.5 =\> 5.4.2  
But completion suggest output disappeared.

ex)

Es 1.7.5 Suggest Mapping

```
 "test_suggest" : {

            {
                "input": "bigbang",
                "payload": {
                    "type": "foo",
                    "id": "A",
                    "name": "BIGBANG"
                },
                "weight": 111,
                "output": "BIGBANG"
            
            }
            ,
            {
            
                "input": "빅뱅",
                "payload": {
                    "type": "foo",
                    "id": "B",
                    "name": "BIGBANG"
                },
                "weight": 111,
                "output": "빅뱅"
            
            }
            ,
           {
            
                "input": "qlrqod",
                "payload": {
                    "type": "foo",
                    "id": "B",
                    "name": "BIGBANG"
                },
                "weight": 111,
                "output": "빅뱅"
             }
 }

```

Query

I went this

search result  
bigbang -\> BIGBANG  
빅뱅 -\> 빅뱅  
qlrqod -\> 빅뱅

5.4.2 suggest Mapping

```
"test_suggest": [
            
           {
                "input": "bigbang",
                "weight": 111
            }
            ,
            {
                "input": "빅뱅",
                "weight": 111
            }
            ,
           {                
                "input": "qlrqod",
                "weight": 111,
             }
  ],
  "KEYWD" : "BIGBANG",
  "TYPE": "foo",
  "ID": "A"

```

How do I do it?

---

<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:** [August 29, 2017, 1:37am UTC](https://discuss.elastic.co/t/how-to-used-suggest-5-x/95262/2 "2017-08-29T01:37:57Z")

</div>

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