# 띄어쓰기 무시
PUT test-completion-suggester
{
  "mappings": {
    "properties": {
      "my_field": {
        "type": "completion",
        "preserve_separators": false
      }
    }
  }
}

PUT test-completion-suggester/_doc/1
{
  "my_field": [
    {
      "input": "경기도",
      "weight": 1
    },
    {
      "input": "분당구",
      "weight": 5
    },
    {
      "input": "정자동",
      "weight": 10
    }
  ]
}