Skip to content

Commit

Permalink
using whitespace analyzer and not the default one
Browse files Browse the repository at this point in the history
fixes #171
  • Loading branch information
garbas committed Aug 29, 2020
1 parent b4a6535 commit 3fc59ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Search.elm
Expand Up @@ -751,6 +751,7 @@ search_fields query fields =
[ ( "type", Json.Encode.string "most_fields" )
, ( "query", Json.Encode.string queryWord )
, ( "fuzziness", Json.Encode.int <| String.length queryWord // 5 )
, ( "analyzer", Json.Encode.string "whitespace" )
, ( "operator", Json.Encode.string "or" )
, ( "_name"
, Json.Encode.string <| "multi_match_" ++ queryWord ++ "_" ++ (queryIndex + 1 |> String.fromInt)
Expand Down

0 comments on commit 3fc59ec

Please sign in to comment.