Fuzzy query with simple query string

I'm trying to get fuzzy searching working using simple_query_string.

An example query:
"query":{
"simple_query_string": {
"query" : "drover",
"fields" : [
"description^1.0",
"title^1.0",
"content^1.0"
],
"flags" : "PHRASE",
"default_operator" : "or",
"analyze_wildcard" : false,
"quote_field_suffix" : ".exact",
"auto_generate_synonyms_phrase_query" : false,
"fuzzy_prefix_length" : 1,
"fuzzy_max_expansions" : 10,
"fuzzy_transpositions" : true,
"boost" : 1.0
}
}

returns no results. I know that if I update flags to "flags" : "PHRASE|FUZZY", and put in a ~ I can get fuzzy results, but I really want this to occur automatically.

The multi match query below returns results with fuzzy matching.
"query":{
"multi_match": {
"query" : "drover",
"fields" : [
"description^1.0",
"title^1.0",
"content^1.0"
],
"auto_generate_synonyms_phrase_query" : false,
"fuzziness": "AUTO",
"max_expansions": 10,
"fuzzy_transpositions": true,
"boost" : 1.0
}
}

Is there anyway to get fuzzy matching occurring automatically for the simple query string query like it does for multi match?

Thanks Georgina.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.