Skip to content

Commit

Permalink
By mistake the default analyzer was used for query
Browse files Browse the repository at this point in the history
At the same time i'm removing all of the fuzziness.
  • Loading branch information
garbas committed Sep 17, 2020
1 parent 1ecf99c commit 317e1b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Search.elm
Expand Up @@ -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"
Expand Down

0 comments on commit 317e1b0

Please sign in to comment.