# Completion Suggester Text Length

**URL:** https://discuss.elastic.co/t/completion-suggester-text-length/47643
**Category:** Elasticsearch
**Created:** [April 18, 2016, 10:53am UTC](https://discuss.elastic.co/t/completion-suggester-text-length/47643 "2016-04-18T10:53:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![matt\_lethargic](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@matt\_lethargic](https://discuss.elastic.co/u/matt_lethargic)
#### Post date: [April 18, 2016, 10:53am UTC](https://discuss.elastic.co/t/completion-suggester-text-length/47643/1 "2016-04-18T10:53:09Z")

</div>

Hi, I've got a question that I can't find in the docs.

I'm doing a suggestion search for "queens park", if I enter "queens" or even "queens par" it works fine (the text is 10 chars or less) but then if I use "queens park" of which I know there are many documents that match I get no results.

I've done some other testing and it seems to be the length of the query text.

Is there a 10 character limit on the completion suggester?

Thanks

Matt

---

<div class="post-metadata">

### Author: ![jimczi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jimczi/32/47985_2.png) [@jimczi](https://discuss.elastic.co/u/jimczi)
#### Post date: [April 19, 2016, 8:12am UTC](https://discuss.elastic.co/t/completion-suggester-text-length/47643/2 "2016-04-19T08:12:23Z")

</div>

Hello Matt,  
There is no character limit on the completion suggester (at least it's not 10). Could you please post a complete example on how to reproduce.

Here is the recreation I've tested:

```auto
PUT t
{
   "mappings": {
      "t": {
         "properties": {
            "suggest": {
               "type": "completion",
               "analyzer": "simple",
               "search_analyzer": "simple"
            }
         }
      }
   }
}

PUT t/t/1
{ 
    "suggest": "queens park rangers"
}

```

And the query:

```auto
GET t/_suggest
{
  "song-suggest" : {
        "text" : "queens park",
        "completion" : {
            "field" : "suggest"
        }
    }
}

```

... returns:

````auto
{
   "_shards": {
      "total": 5,
      "successful": 5,
      "failed": 0
   },
   "song-suggest": [
      {
         "text": "queens park",
         "offset": 0,
         "length": 11,
         "options": [
            {
               "text": "queens park rangers",
               "score": 1
            }
         ]
      }
   ]
}
```
````

---

<div class="post-metadata">

### Author: ![matt\_lethargic](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@matt\_lethargic](https://discuss.elastic.co/u/matt_lethargic)
#### Post date: [April 19, 2016, 9:52pm UTC](https://discuss.elastic.co/t/completion-suggester-text-length/47643/3 "2016-04-19T21:52:39Z")

</div>

Turns out the limit is set in the mapping!  
Remap and reindex for me!!

---

<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, 10:57pm UTC](https://discuss.elastic.co/t/completion-suggester-text-length/47643/4 "2017-07-05T22:57:54Z")

</div>


