#没问题 index: analysis: filter: my_synonym: type: synonym synonyms_path: analysis/synonym.txt analyzer: ik_max_word_synonym: filter: [my_synonym] type: org.elasticsearch.index.analysis.IkAnalyzerProvider use_smart: false ik_max_smart_synonym: filter: [my_synonym] type: org.elasticsearch.index.analysis.IkAnalyzerProvider use_smart: true ik_max_word: type: org.elasticsearch.index.analysis.IkAnalyzerProvider use_smart: false ik_smart: type: org.elasticsearch.index.analysis.IkAnalyzerProvider use_smart: true index.analysis.analyzer.default.type : "ik"
#ik_smart 没生效 index: analysis: filter: my_synonym: type: synonym synonyms_path: analysis/synonym.txt tokenizer: ik_tokenizer: type: org.elasticsearch.index.analysis.IkAnalyzerProvider analyzer: ik_max_word_synonym: filter: [my_synonym] type: custom tokenizer: ik_tokenizer use_smart: false ik_max_smart_synonym: filter: [my_synonym] type: custom tokenizer: ik_tokenizer use_smart: true ik_max_word: type: custom tokenizer: ik_tokenizer use_smart: false ik_smart: type: custom tokenizer: ik_tokenizer use_smart: true index.analysis.analyzer.default.type : "ik"
#没问题 index: analysis: analyzer: ik: alias: [ik_analyzer] type: org.elasticsearch.index.analysis.IkAnalyzerProvider ik_max_word: type: ik use_smart: false ik_smart: type: ik use_smart: true
http://www.cnblogs.com/yjf512/p/4789239.html