Hi, I want a command to get the "nearest word" of a miss-spell word
using fuzzy query.
for example: i have put a command like this
curl -XPUT http://localhost:9200/lowang/ets/11 -d '
{
"_id":11,
"title":"smartfon nokia 5678"
}
and i use a search command like below
curl -XGET http://localhost:9200/lowang/ets/_search -d '{
"query": {
"bool": {
"must":[
{ "fuzzy": { "title": { "value" : "noia" } } }
]
}
}}'
and now i got the results like below
{"took":35,"timed_out":false,"_shards":{"total":5,"successful":
5,"failed":0},"hits":{"total":1,"max_score":0.15342641,"hits":
[{"_index":"lowang","_type":"ets","_id":"11","_score":0.15342641,
"_source" :
{
"_id":11,
"title":"smartfon nokia 5678"
}}]}}
internally...using fuzzy query logic ..it is calculating nearest word
for "noia" as "nokia"..and it giving results for the word "nokia".
Instead of results i want to display the "nearest word" of a miss-
spelled word.
How to i can get?