# \[Completion\] Max Lengh For Single Input Works Wrong

**URL:** https://discuss.elastic.co/t/completion-max-lengh-for-single-input-works-wrong/14488
**Category:** Elasticsearch
**Created:** [November 20, 2013, 9:39am UTC](https://discuss.elastic.co/t/completion-max-lengh-for-single-input-works-wrong/14488 "2013-11-20T09:39:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![zkidkid](https://avatars.discourse-cdn.com/v4/letter/z/fbc32d/32.png) [@zkidkid](https://discuss.elastic.co/u/zkidkid)
#### Post date: [November 20, 2013, 9:39am UTC](https://discuss.elastic.co/t/completion-max-lengh-for-single-input-works-wrong/14488/1 "2013-11-20T09:39:18Z")

</div>

Hi,  
I read the document and see that the default is 50.  
I have tried to input too long to check:  
like that:

curl -X PUT 'localhost:9200/music/song/2?refresh=true' -d '{

```
"name" : "Nevermind",

"suggest" : {

    "input": [ "Nevermind XYZ","When an existing mapping already exists 

```

under the given type, the two mapping definitions, the one already defined,  
and the new ones are merged. The ignore\_conflicts parameters can be used to  
control if conflicts should be ignored or not, by default, it is set  
to false which means conflicts are _not_ ignored." ],

```
    "output": "Nirvana - Nevermind X 2",

    "payload" : { "artistId" : 2321 },

    "weight" : 34

}

```

}'

It give me successful.  
I have tried to test suggest:

curl -X POST 'localhost:9200/music/\_suggest?pretty' -d '{

```
"song2-suggest" : {

    "text" : "When an existing mapping already exists under the given 

```

type, the two mapping definitions, the one already defined, and the new  
ones are merged",

```
    "completion" : {

        "field" : "suggest"

    }

}

```

}'

Then it show me the result -\> still work although the text lengh is over 50.

So it mean the "max\_input\_len" value is not work as expected right ?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:06am UTC](https://discuss.elastic.co/t/completion-max-lengh-for-single-input-works-wrong/14488/2 "2017-07-06T02:06:01Z")

</div>


