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

Add synonyms filter to the analysis configuration #74

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

marko-bekhta
Copy link
Collaborator

fixes #59

I've tried what I thought would be a simpler first step and added a synonyms filter.
Adding it to the index analyzer occasionally results in some strange highlights, so I've added it to the search analyzer, as the synonym_graph is intended for the search analyzers, and it is supposed to work with multi-word synonyms that we have.

Note the change to the search query, simpleQueryString messes things up with synonyms, similar to what I've seen with the stop words in the other PR...

Copy link
Member

@yrodiere yrodiere left a comment

Choose a reason for hiding this comment

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

Great if this works :) I added a few comments, nothing critical.

Copy link
Member

@yrodiere yrodiere left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@yrodiere yrodiere merged commit e9b5d8d into quarkusio:main Dec 8, 2023
1 check passed
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 synonym/decomposing support for specific words
2 participants