# Complete suggestion Issue

**URL:** <https://discuss.elastic.co/t/complete-suggestion-issue/19012>\
**Category:** Elasticsearch\
**Created:** [July 31, 2014, 7:45pm UTC](https://discuss.elastic.co/t/complete-suggestion-issue/19012 "2014-07-31T19:45:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Madhavan\_Ramachandra](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@Madhavan\_Ramachandra](https://discuss.elastic.co/u/Madhavan_Ramachandra)\
**Post date:** [July 31, 2014, 7:45pm UTC](https://discuss.elastic.co/t/complete-suggestion-issue/19012/1 "2014-07-31T19:45:18Z")

</div>

Hi

I have created index for typeahead aka completion suggestion in ES. I  
feeded the below data into ES.

us-en-us-chicago  
us-en-us-chicago, central loop  
us-en-us-chicago, east loop  
us-en-us-chicago, eastern east-west  
us-en-us-chicago, i-80 & i-55 corridors  
us-en-us-chicago, i-90 corridor  
us-en-us-chicago, north (cook county)  
us-en-us-chicago, north (lake county)  
us-en-us-chicago, north i-94 corridor  
us-en-us-chicago, north michigan avenue  
us-en-us-chicago, northwest  
us-en-us-chicago, northwest indiana  
us-en-us-chicago, o'hare  
us-en-us-chicago, river north  
us-en-us-chicago, west loop  
us-en-us-chicago, western east-west

when i run the below suggest query, i am getting only 5 results out of the  
above..

{  
"my-suggest" : {  
"text" : "us-en-us-c",  
"completion" : {  
"field" : "search"  
}  
}  
}

{  
"\_shards": {  
"total": 5,  
"successful": 5,  
"failed": 0  
},  
"my-suggest": [  
{  
"text": "us-en-us-c",  
"offset": 0,  
"length": 10,  
"options": [  
{  
"text": "us-en-us-chicago",  
"score": 1  
},  
{  
"text": "us-en-us-chicago, central loop",  
"score": 1  
},  
{  
"text": "us-en-us-chicago, east loop",  
"score": 1  
},  
{  
"text": "us-en-us-chicago, eastern east-west",  
"score": 1  
},  
{  
"text": "us-en-us-chicago, i-80 & i-55 corridors",  
"score": 1  
}  
]  
}  
]  
}

But if i do search.. i used to see all the results.. how to get all the  
results using \_suggest ?

Regards  
Madhavan.TR

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f9e77708-bd3f-417e-8e79-766894afa45d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f9e77708-bd3f-417e-8e79-766894afa45d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Madhavan\_Ramachandra](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@Madhavan\_Ramachandra](https://discuss.elastic.co/u/Madhavan_Ramachandra)\
**Post date:** [August 1, 2014, 4:19pm UTC](https://discuss.elastic.co/t/complete-suggestion-issue/19012/2 "2014-08-01T16:19:04Z")

</div>

Does anyone provide any suggestion for the below observation?  
any kind of help is much appreciated.

Regards  
Madhavan.TR

On Thursday, July 31, 2014 2:45:18 PM UTC-5, Madhavan Ramachandran wrote:

> Hi
> 
> I have created index for typeahead aka completion suggestion in ES. I  
> feeded the below data into ES.
> 
> us-en-us-chicago  
> us-en-us-chicago, central loop  
> us-en-us-chicago, east loop  
> us-en-us-chicago, eastern east-west  
> us-en-us-chicago, i-80 & i-55 corridors  
> us-en-us-chicago, i-90 corridor  
> us-en-us-chicago, north (cook county)  
> us-en-us-chicago, north (lake county)  
> us-en-us-chicago, north i-94 corridor  
> us-en-us-chicago, north michigan avenue  
> us-en-us-chicago, northwest  
> us-en-us-chicago, northwest indiana  
> us-en-us-chicago, o'hare  
> us-en-us-chicago, river north  
> us-en-us-chicago, west loop  
> us-en-us-chicago, western east-west
> 
> when i run the below suggest query, i am getting only 5 results out of the  
> above..
> 
> {  
> "my-suggest" : {  
> "text" : "us-en-us-c",  
> "completion" : {  
> "field" : "search"  
> }  
> }  
> }
> 
> {  
> "\_shards": {  
> "total": 5,  
> "successful": 5,  
> "failed": 0  
> },  
> "my-suggest": [  
> {  
> "text": "us-en-us-c",  
> "offset": 0,  
> "length": 10,  
> "options": [  
> {  
> "text": "us-en-us-chicago",  
> "score": 1  
> },  
> {  
> "text": "us-en-us-chicago, central loop",  
> "score": 1  
> },  
> {  
> "text": "us-en-us-chicago, east loop",  
> "score": 1  
> },  
> {  
> "text": "us-en-us-chicago, eastern east-west",  
> "score": 1  
> },  
> {  
> "text": "us-en-us-chicago, i-80 & i-55 corridors",  
> "score": 1  
> }  
> ]  
> }  
> ]  
> }
> 
> But if i do search.. i used to see all the results.. how to get all the  
> results using \_suggest ?
> 
> Regards  
> Madhavan.TR

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0fd90525-df37-4172-8203-1ae8710ebb8b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0fd90525-df37-4172-8203-1ae8710ebb8b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:11am UTC](https://discuss.elastic.co/t/complete-suggestion-issue/19012/3 "2017-07-06T01:11:37Z")

</div>


