Improve sudachi settings
This commit is contained in:
parent
eba4feddf8
commit
22427c4669
4 changed files with 57 additions and 5 deletions
|
@ -50,6 +50,16 @@ class PublicStatusesIndex < Chewy::Index
|
|||
type: 'stemmer',
|
||||
language: 'possessive_english',
|
||||
},
|
||||
|
||||
my_posfilter: {
|
||||
type: 'sudachi_part_of_speech',
|
||||
stoptags: [
|
||||
'助詞',
|
||||
'助動詞',
|
||||
'補助記号,句点',
|
||||
'補助記号,読点',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
analyzer: {
|
||||
|
@ -65,7 +75,10 @@ class PublicStatusesIndex < 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