Elastic Search for misspelled words

For phrase queries, try using a match query with fuzziness enabled. It will
create a fuzzy query for each term in your search.

Cheers,

Ivan

On Wed, Oct 23, 2013 at 8:09 AM, samir.selia@wcities.com wrote:

Dear All,

I want to display best possible results for misspelled search terms

I tried using fuzzy method. It works well for search term having single
word. For multiple words it doesn't return any result.

Below is the sample code.

$result = $es->search(array(
'query' => array(
"fuzzy" => array(
"name" => array(
"value" => "jay z",
"boost" => 1.0,
"min_similarity" => 0.5,
"prefix_length" => 1
)
)
),
"from" => $start,
"size" => $limit
)
);

Thanks,
Samir

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.