From 5a65c6f94bf6ff743de6d6d3049bd071f606bf0e Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Thu, 17 Sep 2020 18:00:07 +0200 Subject: [PATCH] By mistake the default analyzer was used for query (#195) At the same time i'm removing all of the fuzziness. --- src/Search.elm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Search.elm b/src/Search.elm index 78813c1..4b62b50 100644 --- a/src/Search.elm +++ b/src/Search.elm @@ -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"