diff --git a/lib/search/parser.ex b/lib/search/parser.ex index a307b3a2..914219a6 100644 --- a/lib/search/parser.ex +++ b/lib/search/parser.ex @@ -169,7 +169,7 @@ defmodule Search.Parser do defp field_top(parser, tokens), do: field_term(parser, tokens) defp field_term(parser, [custom_field: field_name, range: :eq, value: value]) do - case parser.transforms[field_name].(parser.__data__, value) do + case parser.transforms[field_name].(parser.__data__, String.trim(value)) do {:ok, child} -> {:ok, {child, []}}