Completion Suggester Text Length

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

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:

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

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

And the query:

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

... returns:

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

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