Update sudachi settings

This commit is contained in:
KMY 2023-04-05 18:22:00 +09:00
parent 232339db52
commit a2e674af51

View file

@ -30,7 +30,20 @@ class StatusesIndex < Chewy::Index
english_stemmer english_stemmer
), ),
}, },
sudachi_analyzer: {
filter: [],
type: 'custom',
tokenizer: 'sudachi_tokenizer',
},
}, },
tokenizer: {
sudachi_tokenizer: {
resources_path: '/etc/elasticsearch/sudachi',
split_mode: 'C',
type: 'sudachi_tokenizer',
discard_punctuation: 'true',
}
}
} }
# We do not use delete_if option here because it would call a method that we # We do not use delete_if option here because it would call a method that we