Complete suggestion Issue

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

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