Skip to content

Conversation

@yukiomoto
Copy link

resolve #300

This pr adds a feature that allows users to override the predefined stopwords of Sonic.

The configuration file can include this to configure Sonic's stopwords only to foo and bar.

[channel.search.stopwords]
eng=["foo", "bar"]

I also believe the pr could help #254 and #266 too because you can do this to disable stopwords completely.

[channel.search.stopwords]
eng=[]

@valeriansaliou
Copy link
Owner

Thank you for this PR. Would it be possible to use macros in order to do some codegen on this?

@yukiomoto
Copy link
Author

@valeriansaliou
Thank you for the review. I will try macros.

@yukiomoto
Copy link
Author

Hi, @valeriansaliou
I added a stopwords codegen macro. If I'm misunderstanding something, please let me know. Thank you!

@valeriansaliou
Copy link
Owner

Thank you, will review soon!

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.

User defined stopwords

2 participants