Skip to content

Commit

Permalink
experimental kuromoji support
Browse files Browse the repository at this point in the history
  • Loading branch information
mohemohe committed Dec 26, 2020
1 parent 41e996d commit e77a3a3
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion app/chewy/statuses_index.rb
Expand Up @@ -16,13 +16,29 @@ class StatusesIndex < Chewy::Index
language: 'possessive_english',
},
},
tokenizer: {
kuromoji: {
type: 'kuromoji_tokenizer',
mode: 'search',
},
},
analyzer: {
content: {
tokenizer: 'uax_url_email',
tokenizer: 'kuromoji',
type: 'custom',
char_filter: %w(
icu_normalizer
html_strip
kuromoji_iteration_mark
),
filter: %w(
english_possessive_stemmer
lowercase
asciifolding
kuromoji_stemmer
kuromoji_number
kuromoji_baseform
icu_normalizer
cjk_width
english_stop
english_stemmer
Expand Down

0 comments on commit e77a3a3

Please sign in to comment.