By mistake the default analyzer was used for query (#195)
At the same time i'm removing all of the fuzziness.
This commit is contained in:
parent
1ecf99c711
commit
5a65c6f94b
|
@ -767,7 +767,8 @@ search_fields baseScore queryWords fields =
|
||||||
, Json.Encode.object
|
, Json.Encode.object
|
||||||
[ ( "type", Json.Encode.string "bool_prefix" )
|
[ ( "type", Json.Encode.string "bool_prefix" )
|
||||||
, ( "query", Json.Encode.string queryWord )
|
, ( "query", Json.Encode.string queryWord )
|
||||||
, ( "fuzziness", Json.Encode.int <| String.length queryWord // 5 )
|
, ( "analyzer", Json.Encode.string "lowercase" )
|
||||||
|
, ( "auto_generate_synonyms_phrase_query", Json.Encode.bool False )
|
||||||
, ( "prefix_length", Json.Encode.int 3 )
|
, ( "prefix_length", Json.Encode.int 3 )
|
||||||
, ( "operator", Json.Encode.string "or" )
|
, ( "operator", Json.Encode.string "or" )
|
||||||
, ( "_name"
|
, ( "_name"
|
||||||
|
|
Loading…
Reference in a new issue