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:
Rok Garbas 2020-09-17 18:00:07 +02:00 committed by GitHub
parent 1ecf99c711
commit 5a65c6f94b
Failed to generate hash of commit

View file

@ -767,7 +767,8 @@ search_fields baseScore queryWords fields =
, Json.Encode.object
[ ( "type", Json.Encode.string "bool_prefix" )
, ( "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 )
, ( "operator", Json.Encode.string "or" )
, ( "_name"