# Completion Suggester ignores commas, dashes

**URL:** https://discuss.elastic.co/t/completion-suggester-ignores-commas-dashes/29460
**Category:** Elasticsearch
**Created:** [September 17, 2015, 8:10am UTC](https://discuss.elastic.co/t/completion-suggester-ignores-commas-dashes/29460 "2015-09-17T08:10:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Alexander\_Roussakov](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Alexander\_Roussakov](https://discuss.elastic.co/u/Alexander_Roussakov)
#### Post date: [September 17, 2015, 8:10am UTC](https://discuss.elastic.co/t/completion-suggester-ignores-commas-dashes/29460/1 "2015-09-17T08:10:32Z")

</div>

Hey, I am quite confused  
I want to reach the same effect as a google autocomplete does within it input field, when you start typing chars you get autocompletion in a grey colour, so i've chosen completion suggester to implement this behaviour.  
It looks like it works fine but there is some issues with symbols like commas and dashes

```
"suggestions" : { "type" : "completion",
                  "index_analyzer" : "simple",
                  "search_analyzer" : "simple",
                  "payloads" : true
},

```

My suggest query:

```
{"test-suggest" : {
        "text" : "Brekke-",
        "completion" : {
            "field" : "suggestions",
            "size" : 10
        }
    }
}

```

result:

```
    {
  "_shards": {
    "total": 1,
    "successful": 1,
    "failed": 0
  },
  "test-suggest": [
    {
      "text": "Brekke-",
      "offset": 0,
      "length": 7,
      "options": [
        {
          "text": "Brekke Ltd",
          "score": 1
        },
        {
          "text": "Brekke-Hoppe",
          "score": 1
        },
        {
          "text": "Brekke, Metz and Lemke",
          "score": 1
        },
        {
          "text": "Brekke, Prosacco and Padberg",
          "score": 1
        }
      ]
    }
  ]
}

```

My documents stored in following structure:

```
  {
    "_index": "sobjects5",
    "_type": "account",
    "_id": "AU_aF5FHQ_fPVvioZbZs",
    "_score": 1,
    "_source": {
      "contactId": "deef3eec-9064-3dfa-a51f-357e491bb79f",
      "id": "e8eb437fe4af77edf438512bc9aee896",
      "accountType": "CUSTOMER",
      "companyName": "Collier-Jaskolski",
      "firstName": "Alejandra",
      "lastName": "Rolfson",
      "email": "Jonatan52@gmail.com",
      "suggestions": {
        "input": [
          "Laurel",
          "Wunsch",
          "Hills-Cronin",
          "Braun.Twila@Bartoletti.com"
        ]
      }
    }
  }

```

expected:  
I don't want to get any results which not exactly match the suggest value.

Any suggestions, guys? 🙂

Thanks!

---

<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: [July 5, 2017, 11:49pm UTC](https://discuss.elastic.co/t/completion-suggester-ignores-commas-dashes/29460/2 "2017-07-05T23:49:50Z")

</div>


