From 43f406e79768adf36b4a61092da42be287895050 Mon Sep 17 00:00:00 2001 From: bgme Date: Sat, 9 Sep 2023 20:58:58 +0800 Subject: [PATCH] fix TagsIndex < Chewy::Index --- app/chewy/tags_index.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/app/chewy/tags_index.rb b/app/chewy/tags_index.rb index 5b5f0c6ab..5b6349a96 100644 --- a/app/chewy/tags_index.rb +++ b/app/chewy/tags_index.rb @@ -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: {