term --> terms query
@@ -247,7 +247,7 @@ def search(search_params, index, page_size, ip, request,
to_exclude = []
for filtered in filtered_providers:
to_exclude.append(filtered['provider_identifier'])
- s = s.exclude('term', provider=to_exclude)
+ s = s.exclude('terms', provider=to_exclude)
# Search either by generic multimatch or by "advanced search" with
# individual field-level queries specified.
