Followed this https://github.com/elasticsearch/elasticsearch guide,
setup elasticSearch and the twitter like information.
As shown below, fuzzy search { "user": "kimc" } can get expected result,
but fuzzy search { "user": "kim" } cannot get results.
What is the cause?
Thank you.
curl -XGET 'http://localhost:9200/twitter/tweet/_search?pretty=true' -d '
*{ *
- "query" : { *
-
"fuzzy" : { "user": "kimc" }*
- } *
}'
{
"took" : 3,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 2,
"max_score" : 1.0,
"hits" : [ {
"_index" : "twitter",
"_type" : "tweet",
"_id" : "2",
"_score" : 1.0, "_source" :
{
"user": "kimchy",
"postDate": "2009-11-15T14:12:12",
"message": "Another tweet, will it be indexed?"
}
}, {
"_index" : "twitter",
"_type" : "tweet",
"_id" : "1",
"_score" : 0.30685282, "_source" :
{
"user": "kimchy",
"postDate": "2009-11-15T13:12:00",
"message": "Trying out Elastic Search, so far so good?"
}
} ]
}
}
curl -XGET 'http://localhost:9200/twitter/tweet/_search?pretty=true' -d '
*{ *
- "query" : { *
-
"fuzzy" : { "user": "kim" }*
- } *
}'
{
"took" : 2,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 0,
"max_score" : null,
"hits" : [ ]
}
}
linlinfu-mac:~ linlinfu$
--
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/5f543af7-7758-459f-b5c7-c1f856690b72%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.