Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Use terms instead of term #764

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/catalog/api/controllers/search_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def _apply_filter(
filters = []
for arg in search_params.data[serializer_field].split(","):
PrajwalBorkar marked this conversation as resolved.
Show resolved Hide resolved
_param = es_field or serializer_field
args = {"name_or_query": "term", _param: arg}
args = {"name_or_query": "terms", _param: arg}
filters.append(Q(**args))
method = getattr(s, behaviour)
return method("bool", should=filters)
Expand Down