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