Skip to content
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

adding synonyms for searching #332

Merged
merged 2 commits into from
Jul 16, 2024
Merged

adding synonyms for searching #332

merged 2 commits into from
Jul 16, 2024

Conversation

hudajkhan
Copy link
Contributor

@hudajkhan hudajkhan commented Jul 11, 2024

What this pull request does:

Closes sul-dlss/earthworks#41 and relates to sul-dlss/earthworks#1083, we are adding a synonym file with added values and adding a synonym filter to the query analyzer for the "text_en" field type.

@jcoyne
Copy link
Contributor

jcoyne commented Jul 15, 2024

Watch out for the flying lobsters @peetucket


sewerage,drains,manhole,manholes,sewage,sewer,sewerage,sewer-pipe,sewers

invertebrates,lobsters,mosquitoes,shellfish
Copy link
Contributor Author

@hudajkhan hudajkhan Jul 15, 2024

Choose a reason for hiding this comment

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

@jcoyne and @peetucket , I can change this line so it's an expansion in one direction. I.e. invertebrates -> lobsters, mosquitoes, shellfish. This would prevent a search for mosquitoes to expand to a search for lobsters and vice versa.

Copy link
Contributor

Choose a reason for hiding this comment

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

LOL, I don't really care. It's not my area of expertise. I just thought that it was silly.

Copy link
Member

Choose a reason for hiding this comment

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

"The Flying Lobsters" is going to be the name of my steel drum band when I retire on Cape Cod.

@dnoneill
Copy link
Contributor

any reason we can't merge?

@hudajkhan
Copy link
Contributor Author

@dnoneill I think it's fine to merge. I'll put in another PR after testing some of this on staging to deal with the lobster situation. :)

@dnoneill dnoneill merged commit 89e1f47 into master Jul 16, 2024
1 check passed
@dnoneill dnoneill deleted the addEarthworksSynonym branch July 16, 2024 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add synonyms to Solr index for better searching results
4 participants