-
Notifications
You must be signed in to change notification settings - Fork 750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limit simple search #6325
Limit simple search #6325
Conversation
c0b4c69
to
1ba7b20
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smithellis Have you tried testing this locally? When I run this branch locally, I stop getting any hits when making simple searches for known titles or keywords. I thought it was my setup at first, but when I switched to the main
branch, my simple searches for known titles and keywords worked fine.
kitsune/search/search.py
Outdated
@@ -124,6 +125,8 @@ def get_filter(self): | |||
"gte": datetime.now(timezone.utc) - timedelta(days=QUESTION_DAYS_DELTA) | |||
}, | |||
), | |||
# don't return archived Questiosn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo Questiosn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's been a while, but yes I did test locally. I'll take another look. And fix the typo, too!
ff217bb
to
b530b5e
Compare
Update search.py to exclude archived questions
b530b5e
to
0e2101b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great now, thanks @smithellis.
Limit simple search - don't display archived Questions.