How to used suggest 5.x


(정석) #1

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?


(system) #2

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