analysis.yml
4.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
index:
analysis:
tokenizer:
my_pinyin:
type: pinyin
first_letter: prefix
padding_char: ''
pinyin_first_letter:
type: pinyin
first_letter: only
simple_pinyin:
type: pinyin
first_letter: none
padding_char: ''
semicolon_spliter:
type: pattern
pattern: ";"
pct_spliter:
type: pattern
pattern: "[%]+"
ngram_1_to_2:
type: nGram
min_gram: 1
max_gram: 2
ngram_1_to_3:
type: nGram
min_gram: 1
max_gram: 3
ik_smart_custom:
type: ik_smart,
use_smart: true,
dict_db_enable: true,
dict_db_log_enable:true,
dict_db_url: jdbc:mysql://192.168.102.216:3306/yhb_search_dev?user=yh_test&password=9nm0icOwt6bMHjMusIfMLw==&useUnicode=true&characterEncoding=UTF8
filter:
ngram_min_3:
max_gram: 10
min_gram: 3
type: nGram
ngram_min_2:
max_gram: 10
min_gram: 2
type: nGram
ngram_min_1:
max_gram: 10
min_gram: 1
type: nGram
min2_length:
min: 2
max: 4
type: length
min3_length:
min: 3
max: 4
type: length
pinyin_first_letter:
type: pinyin
first_letter: only
my_stop:
type: stop
stopwords_path: custom/stopwords.txt
my_synonym:
type: synonym
synonyms_path: custom/synonyms.dic
dynamic_synonym:
type:dynamic-synonym
synonym_expand:true
synonym_ignore_case:true
synonym_analyzer:ik_smart
synonym_db_dict_url:jdbc:mysql://192.168.102.216:3306/yhb_search_dev?user=yh_test&password=9nm0icOwt6bMHjMusIfMLw==&useUnicode=true&characterEncoding=UTF8
dynamic_synonym_rewrite:
type:dynamic-synonym-rewrite
synonym_expand:true
synonym_ignore_case:true
synonym_analyzer:ik_smart
synonym_db_dict_url:jdbc:mysql://192.168.102.216:3306/yhb_search_dev?user=yh_test&password=9nm0icOwt6bMHjMusIfMLw==&useUnicode=true&characterEncoding=UTF8
analyzer:
lowercase_standard:
type: custom
filter:
- lowercase
tokenizer: standard
lowercase_keyword:
type: custom
filter:
- lowercase
tokenizer: keyword
lowercase_whitespace:
type: custom
filter:
- lowercase
tokenizer: whitespace
lowercase_keyword_ngram:
type: custom
filter:
- lowercase
- stop
- trim
- unique
tokenizer: ngram_1_to_3
ik_max_word:
type: ik
use_smart: false
ik_max_word_syno:
type: custom
tokenizer: ik
filter: [my_synonym]
use_smart: false
ik_smart:
type: ik
use_smart: true
ik_complex:
type: custom
tokenizer: ik_smart_custom
filter:
- lowercase
- dynamic_synonym
- my_stop
- lowercase
- unique
ik_complex_search:
type: custom
tokenizer: ik_smart
filter:
- lowercase
- dynamic_synonym_rewrite
- my_stop
- lowercase
- unique
comma_spliter:
type: pattern
pattern: "[,|\\s]+"
pinyin_analyzer:
type: custom
tokenizer: simple_pinyin
filter:
- standard
- word_delimiter
- lowercase
- trim
- unique
pinyin_first_letter_keyword_analyzer:
alias:
- pinyin_first_letter_analyzer_keyword
type: custom
tokenizer: keyword
filter:
- pinyin_first_letter
- lowercase
index.analysis.analyzer.default.type: keyword
index.search.slowlog.level: TRACE
index.search.slowlog.threshold.query.warn: 1s
index.search.slowlog.threshold.query.info: 800ms
index.search.slowlog.threshold.query.debug: 500ms
index.search.slowlog.threshold.query.trace: 200ms
index.search.slowlog.threshold.fetch.warn: 1s
index.search.slowlog.threshold.fetch.info: 800ms
index.search.slowlog.threshold.fetch.debug: 500ms
index.search.slowlog.threshold.fetch.trace: 200ms