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:
[{tokens: [jorge, jorge sanchez
}
},
So what is the correct way of updating the ES documents when using the
suggester ?
Thanks,
Jorge Sanchez
--
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
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 ES
: {
input: [ jorge, sanchez, jorge sanchez ],
payload : { userid : 2, grouporuser: user }
}
}'
post /gruppu/user/10001?refresh=true
{
name : group jorge,
suggest : {
input: [ jjorge],
payload : { userid : 10001, grouporuser: group }
}
}'
post /gruppu/user
: {
total : 5,
successful : 5,
failed : 0
},
user-suggest : [ {
text : j,
offset : 0,
length : 1,
options : [ ]
} ]
}
Keep in mind that when you suggest on j, this entry will produce 2
suggestions because it matches both jorge and jorge sanchez:
post