mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-21 17:53:18 +00:00
fix TagsIndex < Chewy::Index
This commit is contained in:
parent
43eeabf2ef
commit
43f406e797
1 changed files with 1 additions and 10 deletions
|
|
@ -2,24 +2,15 @@
|
|||
|
||||
class TagsIndex < Chewy::Index
|
||||
settings index: index_preset(refresh_interval: '30s'), analysis: {
|
||||
char_filter: {
|
||||
tsconvert: {
|
||||
type: 'stconvert',
|
||||
keep_both: false,
|
||||
delimiter: '#',
|
||||
convert_type: 't2s',
|
||||
},
|
||||
},
|
||||
analyzer: {
|
||||
content: {
|
||||
tokenizer: 'ik_max_word',
|
||||
tokenizer: 'keyword',
|
||||
filter: %w(
|
||||
word_delimiter_graph
|
||||
lowercase
|
||||
asciifolding
|
||||
cjk_width
|
||||
),
|
||||
char_filter: %w(tsconvert),
|
||||
},
|
||||
|
||||
edge_ngram: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue