Skip to content

Conversation

@abeglova
Copy link
Contributor

@abeglova abeglova commented Oct 2, 2024

What are the relevant tickets?

closes https://github.com/mitodl/hq/issues/5659

Description (What does it do?)

Adds a default minimum score cutoff to searches with a search term so we show fewer weakly relevant results

How can this be tested?

Login as an admin and go to

http://open.odl.local:8062/search

Verify that the minimum score cutoff slider in the Admin options facet of the search is set to 5

Make a search with a search term. Verify that the number of results increases as you set the minimum score to a lower value and decreases when you set it to a higher value

Additional Context

I decided on 5 after playing with the setting on prod for a bit - we may adjust it higher or lower.

#1590 was supposed to make the search setting settable from the environment. This worked for the backend but not the front end, so I need a commit to update these values for now. It probably makes sense to add a small api endpoint to communicate the values from the backend to the front end so we can set them from heroku but maybe that's not very high priority

@abeglova abeglova marked this pull request as ready for review October 2, 2024 20:04
@abeglova abeglova added the Needs Review An open Pull Request that is ready for review label Oct 3, 2024
@ChristopherChudzicki ChristopherChudzicki self-assigned this Oct 3, 2024
@abeglova abeglova merged commit 6d9cccc into main Oct 3, 2024
10 checks passed
@odlbot odlbot mentioned this pull request Oct 4, 2024
5 tasks
mbertrand pushed a commit that referenced this pull request Oct 4, 2024
shanbady added a commit that referenced this pull request Oct 8, 2024
* set default minimum score cutoff (#1642)

* add is_incomplete_or_stale to default sort (#1641)

* Release 0.20.4

* Use a partial match mode as the search mode for instructor fields(#1652)

* Release date for 0.20.4

* update og:image to use new logo (#1658)

* Release 0.21.0

* Ignore NotFoundErrors in switch_indices function (#1654)

* Release date for 0.21.0

* Shanbady/randomize featured resources (#1653)

* removing backend randomization

* removing results randomization

* moiving shuffle to frontend

* fixing tests

* test fix

* refactoring to old randomization method on frontend

* updating spec

* fixing typechecks

* updating spec and adding position field to api

* adding position to factory

* fixing test

* adding new og-image

---------

Co-authored-by: Anastasia Beglova <abeglova@mit.edu>
Co-authored-by: Doof <mitx-devops@mit.edu>
Co-authored-by: Chris Chudzicki <christopher.chudzicki@gmail.com>
Co-authored-by: Matt Bertrand <mrbertrand@gmail.com>
@rhysyngsun rhysyngsun deleted the ab/default-minimum-cutoff-score branch February 7, 2025 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review An open Pull Request that is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants