From 1ba7b207c226087ab0639a5cced97dbe3e0a1c3b Mon Sep 17 00:00:00 2001 From: Smith Ellis Date: Thu, 31 Oct 2024 11:14:33 -0400 Subject: [PATCH] Limit simple search --- kitsune/search/views.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/kitsune/search/views.py b/kitsune/search/views.py index 2cf8195b2da..bde3edc529a 100644 --- a/kitsune/search/views.py +++ b/kitsune/search/views.py @@ -100,9 +100,13 @@ def simple_search(request): # apply aaq/kb configs if cleaned["w"] & constants.WHERE_WIKI: - search.add(WikiSearch(query=cleaned["q"], locale=language, product=product)) + search.add( + WikiSearch(query=cleaned["q"], locale=language, product=product, is_archived=False) + ) if cleaned["w"] & constants.WHERE_SUPPORT: - search.add(QuestionSearch(query=cleaned["q"], locale=language, product=product)) + search.add( + QuestionSearch(query=cleaned["q"], locale=language, product=product, is_archived=False) + ) # execute search page = paginate(