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

fix: explicit parsing config on query #299

Merged
merged 1 commit into from
Jul 22, 2020
Merged

Conversation

JasonChong96
Copy link
Contributor

Problem

While the default configuration for parsing queries is set to english on most database configurations and on the local docker image, it might be different in production environments.

For example, in AWS RDS, the default is set to simple which does not stem query words.

Solution

Explicitly state that the configuration to use in the query is english

@JasonChong96 JasonChong96 requested a review from yong-jie July 22, 2020 08:44
Copy link
Contributor

@liangyuanruo liangyuanruo left a comment

Choose a reason for hiding this comment

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

How did you find out?

@JasonChong96
Copy link
Contributor Author

JasonChong96 commented Jul 22, 2020

How did you find out?

On production there's a link description that includes "Introduction" but it did not appear when searching "Introduction". I found that by searching it only appears when i searched for its root word "Introduct" which means that the query words weren't being stemmed according the the english config. Confirmed on staging

@JasonChong96 JasonChong96 merged commit 0e4d656 into develop Jul 22, 2020
@JasonChong96 JasonChong96 deleted the fix-search-config branch July 22, 2020 09:46
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.

2 participants