Skip to content

Conversation

@abeglova
Copy link
Contributor

@abeglova abeglova commented Sep 13, 2024

What are the relevant tickets?

https://github.com/mitodl/hq/issues/5351

Description (What does it do?)

Programs are consistently not shown in search results with a text search because scores are calculated separately on each index and not consistent between indexes. Setting search_type="dfs_query_then_fetch' fixes the issue. In #1518 i added a search parameter to use that search type because I was worried that we would get worse search performance. I tested search on rc and search_type="dfs_query_then_fetch' does not seem to affect performance, so we can just use it for all searches.

How can this be tested?

verify that search works as expected
verify that http://open.odl.local:8062/search/?q=Machine+Learning returns a program on the first or second page

@abeglova abeglova marked this pull request as ready for review September 13, 2024 18:28
@abeglova abeglova added the Needs Review An open Pull Request that is ready for review label Sep 13, 2024
@shanbady shanbady self-assigned this Sep 13, 2024
@shanbady shanbady self-requested a review September 13, 2024 19:05
Copy link
Contributor

@shanbady shanbady left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A program showed up on the 4th page for me but I assume thats due to the difference in the data loaded on my local.

@shanbady shanbady assigned abeglova and unassigned shanbady Sep 13, 2024
@shanbady shanbady added Waiting on author and removed Needs Review An open Pull Request that is ready for review labels Sep 13, 2024
@abeglova abeglova force-pushed the ab/always-use_dfs_query_then_fetch branch from 2f75e00 to d72e7cf Compare September 13, 2024 21:44
@abeglova abeglova merged commit a587423 into main Sep 16, 2024
@rhysyngsun rhysyngsun deleted the ab/always-use_dfs_query_then_fetch branch February 7, 2025 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants