...
|
...
|
@@ -26,7 +26,13 @@ index: |
|
|
type: nGram
|
|
|
min_gram: 1
|
|
|
max_gram: 3
|
|
|
filter:
|
|
|
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
|
...
|
...
|
@@ -56,6 +62,18 @@ index: |
|
|
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
|
...
|
...
|
@@ -93,10 +111,10 @@ index: |
|
|
use_smart: true
|
|
|
ik_complex:
|
|
|
type: custom
|
|
|
tokenizer: ik_smart
|
|
|
tokenizer: ik_smart_custom
|
|
|
filter:
|
|
|
- lowercase
|
|
|
- ik_dyn_synonym
|
|
|
- dynamic_synonym
|
|
|
- my_stop
|
|
|
- lowercase
|
|
|
- unique
|
...
|
...
|
@@ -105,7 +123,7 @@ index: |
|
|
tokenizer: ik_smart
|
|
|
filter:
|
|
|
- lowercase
|
|
|
- ik_dyn_synonym_rewrite
|
|
|
- dynamic_synonym_rewrite
|
|
|
- my_stop
|
|
|
- lowercase
|
|
|
- unique
|
...
|
...
|
@@ -131,7 +149,6 @@ index: |
|
|
- 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
|
...
|
...
|
|