Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using whitespace analyzer and not the default one
Browse files Browse the repository at this point in the history
fixes #171
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
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 3fc59ec

Please sign in to comment.