Skip to content

Conversation

@abeglova
Copy link
Contributor

@abeglova abeglova commented Oct 16, 2024

What are the relevant tickets?

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

Description (What does it do?)

This adds a list of synonyms to the search analyzer.

How can this be tested?

run ./manage.py recreate_index --all

Verify that
http://open.odl.local:8062/search?q=ai and http://open.odl.local:8062/search?q=artificial+intelligence have the same results

@abeglova abeglova marked this pull request as ready for review October 16, 2024 19:32
@abeglova abeglova added the Needs Review An open Pull Request that is ready for review label Oct 16, 2024
@shanbady shanbady self-assigned this Oct 17, 2024
@shanbady shanbady self-requested a review October 17, 2024 13:18
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.

Functionality appears to work (tested in codespace with ai example). One non-blocking suggestion I have which might make this list easier to update (and potentially expand via some automated process in the future) is to move the synonyms to a text file and reference it via "synonyms_path".

@shanbady shanbady added Waiting on author and removed Needs Review An open Pull Request that is ready for review labels Oct 17, 2024
@abeglova
Copy link
Contributor Author

I think while we have so few synonyms just keeping them in the code is easier. If we decide to expand the synonyms list substantially, we should do what you suggests and keep them in a text file.

@abeglova abeglova merged commit 12f65ef into main Oct 17, 2024
11 checks passed
This was referenced Oct 21, 2024
@rhysyngsun rhysyngsun deleted the ab/search-synonyms branch February 7, 2025 20:38
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