typeahead
expects back JSON, in the JSON you need to specify the tokens for the
suggest so in my case I am returning tokens "jorge" and "jorge sanchez". If
the user continues to type jorge then autocomplete would use these tokens
to match.
This is the JSON i reply with
tant for the data being returned).
>
>
> --Alex
>
>
> On Sat, Feb 8, 2014 at 4:02 AM, Jorge Sanchez
> > wrote:
>
>> Hi,
>>
>> really appreciate that you are looking into this. I got it working with
>> elasticsearch-1.0.0.RC2
>> release. I don'
> "offset" : 0,
> "length" : 1,
> "options" : [ {
> "text" : "jorge",
> "score" : 1.0, "payload" : {"userid":2,"grouporuser":"user"}
> }, {
>
"suggest" : {
"input": [ "markoff" ],
"payload" : { "userid" : 3, "grouporuser": "user" }
}
}'
post /gruppu/user/2?refresh=true
{
"name" : "jorge",
"sugge
Hi,
I have this following version:
elasticsearch-0.90.10
PS: I can open the server with public IP to be reachable from internet if
you would like to see that behavior yourself.
Regards,
Jorge
Dne pátek, 7. února 2014 12:25:13 UTC-6 Binh Ly napsal(a):
>
> Jorge,
>
> May I ask what version of E
t following:
"user-suggest": [
{
"text": "j",
"offset": 0,
"length": 1,
"options": [
{
"text": "jorge group",
"score": 2,
&q