We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22155c1 commit 79cdc0dCopy full SHA for 79cdc0d
1 file changed
app/chewy/accounts_index.rb
@@ -23,7 +23,12 @@ class AccountsIndex < Chewy::Index
23
24
analyzer: {
25
natural: {
26
- tokenizer: 'standard',
+ tokenizer: 'kuromoji_user_dict',
27
+ char_filter: %w(
28
+ icu_normalizer
29
+ html_strip
30
+ kuromoji_iteration_mark
31
+ ),
32
filter: %w(
33
lowercase
34
asciifolding
@@ -32,6 +37,10 @@ class AccountsIndex < Chewy::Index
37
english_possessive_stemmer
38
english_stop
39
english_stemmer
40
+ kurojoji_stemmer
41
+ kuromoji_number
42
+ kuromoji_baseform
43
35
44
),
36
45
},
46
@@ -52,6 +61,12 @@ class AccountsIndex < Chewy::Index
52
61
min_gram: 1,
53
62
max_gram: 15,
54
63
64
+
65
+ kuromoji_user_dict: {
66
+ type: 'kuromoji_tokenizer',
67
+ mode: 'search',
68
+ user_dictionary: 'userdic.txt',
69
+ },
55
70
56
71
}
57
72
0 commit comments