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

Question about Chinese search optimization section #1306

Open
kotori2 opened this issue Sep 21, 2023 · 1 comment
Open

Question about Chinese search optimization section #1306

kotori2 opened this issue Sep 21, 2023 · 1 comment

Comments

@kotori2
Copy link

kotori2 commented Sep 21, 2023

I'm trying to follow the documentation to configure the Chinese search optimization
However, the first patch

diff --git a/app/chewy/accounts_index.rb b/app/chewy/accounts_index.rb
--- a/app/chewy/accounts_index.rb
+++ b/app/chewy/accounts_index.rb
@@ -4,7 +4,7 @@ class AccountsIndex < Chewy::Index
   settings index: { refresh_interval: '5m' }, analysis: {
     analyzer: {
       content: {
-        tokenizer: 'whitespace',
+        tokenizer: 'ik_max_word',
         filter: %w(lowercase asciifolding cjk_width),
       },

doesn't work anymore on mastodon v4.2.0. Is there any update?

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

No branches or pull requests

2 participants