From af735d8ddd75ed5804b4b37cfcf6e9ecef08e88f Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Mon, 30 Oct 2023 09:39:42 +0300 Subject: [PATCH] Update api/api/controllers/search_controller.py Co-authored-by: sarayourfriend <24264157+sarayourfriend@users.noreply.github.com> --- api/api/controllers/search_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/api/controllers/search_controller.py b/api/api/controllers/search_controller.py index c86fa1e33cc..021f13f7c63 100644 --- a/api/api/controllers/search_controller.py +++ b/api/api/controllers/search_controller.py @@ -379,8 +379,8 @@ def create_search_query( if settings.USE_RANK_FEATURES: search_queries["should"].extend(create_ranking_queries(search_params)) - # If there are no must query clauses, only the results that match - # the`should` clause are returned. To avoid this, we add an empty + # If there are no `must` query clauses, only the results that match + # the `should` clause are returned. To avoid this, we add an empty # query clause to the `must` list. if not search_queries["must"]: search_queries["must"].append(EMPTY_QUERY)