Fuzzy 'query_string' search

Hi,

Based on docs, 'query_string' search can use the following parameters:
fuzzy_prefix_length Set the prefix length for fuzzy queries. Default is 0.
fuzzy_min_sim Set the minimum similarity for fuzzy queries. Defaults to 0.5
So how is this actually used? Does this mean that, if you set any of those
parameters, your 'query_string' becomes automatically fuzzy?

If not, how can a 'query_string' be made fuzzy, if possible?

Thanks.

Hi Enrique

Based on docs, 'query_string' search can use the following parameters:
fuzzy_prefix_length
Set the prefix length for fuzzy
queries. Default is 0.
fuzzy_min_sim
Set the minimum similarity for
fuzzy queries. Defaults to 0.5
So how is this actually used? Does this mean that, if you set any of
those parameters, your 'query_string' becomes automatically fuzzy?

If not, how can a 'query_string' be made fuzzy, if possible?

You add a '~' after the word.

fuzzy_min_sim sets the default fuzzy similarity, so you could search for
"iphone~", which would use the default fuzzy similarity, or you could
search for "iphone~0.5" which uses a similarity of 0.5

I don't think you can control prefix length in the query string itself.

See Apache Lucene - Query Parser Syntax

clint