Improve sudachi settings
This commit is contained in:
parent
eba4feddf8
commit
22427c4669
4 changed files with 57 additions and 5 deletions
|
@ -49,6 +49,16 @@ class StatusesIndex < Chewy::Index
|
|||
type: 'stemmer',
|
||||
language: 'possessive_english',
|
||||
},
|
||||
|
||||
my_posfilter: {
|
||||
type: 'sudachi_part_of_speech',
|
||||
stoptags: [
|
||||
'助詞',
|
||||
'助動詞',
|
||||
'補助記号,句点',
|
||||
'補助記号,読点',
|
||||
],
|
||||
},
|
||||
},
|
||||
analyzer: {
|
||||
content: {
|
||||
|
@ -63,7 +73,10 @@ class StatusesIndex < Chewy::Index
|
|||
),
|
||||
},
|
||||
sudachi_analyzer: {
|
||||
filter: [],
|
||||
filter: %w(
|
||||
my_posfilter
|
||||
sudachi_normalizedform
|
||||
),
|
||||
type: 'custom',
|
||||
tokenizer: 'sudachi_tokenizer',
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue