Update search.erl

Forgot to change one specific case after adding the is_binary clause to filter_json