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

Strip elisions from search keywords #12474

Closed
wants to merge 2 commits into from

Conversation

brianjhanson
Copy link
Contributor

@brianjhanson brianjhanson commented Dec 19, 2022

Description

I learned some things today. The first of which, is that when you smash together some sounds, it's called an elision. They're not very common in English, but they're pretty common in French (they also happen in Catalon, Irish and Italian).

Elisions should be stripped out of search keywords because they change the word and make it harder to find what you're looking for. This fixes that by creating an array of elisions that should be stripped from search terms. I only added the common list in French at the moment, primarily because that's what Elastic search does by default, but we may want to expand this in the future.

Related issues

Fixes #12467

@brianjhanson brianjhanson requested a review from a team as a code owner December 19, 2022 21:22
@brandonkelly brandonkelly deleted the feature/cms-12467-elision-filter branch December 23, 2022 19:42
@brandonkelly
Copy link
Member

Cherry-picked your commits to v3 and merged from there.

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.

[4.x]: Indexed keywords of sentences/words with single quotes/apostrophes are not correct in some cases
2 participants