elasticsearch5.x Settings设置Jcseg+Lc Pinyin组合分析器,求助大神
Elasticsearch | 作者 malingshu | 发布于2017年03月10日 | 阅读数:6067
进行如下配置:
{
"settings": {
"analysis": {
"analyzer": {
"jcseg": {
"alias": "jcseg_analyzer",
"type": "org.lionsoul.jcseg.elasticsearch.index.analysis.JcsegAnalyzerProvider"
},
"jcseg_complex": {
"type": "custom",
"tokenizer": [
"jcseg_complex"
],
"filter": [
"lc_first_letter"
]
}
},
"tokenizer": {
"jcseg_complex": {
"type": "jcseg",
"seg_mode": "complex"
}
}
}
}
}
报错是Jcseg未知的Tokenizer,
{"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Unknown tokenizer type [jcseg] for [jcseg_complex]"
}
],
"type": "illegal_argument_exception",
"reason": "Unknown tokenizer type [jcseg] for [jcseg_complex]"
},
"status": 400}
{
"settings": {
"analysis": {
"analyzer": {
"jcseg": {
"alias": "jcseg_analyzer",
"type": "org.lionsoul.jcseg.elasticsearch.index.analysis.JcsegAnalyzerProvider"
},
"jcseg_complex": {
"type": "custom",
"tokenizer": [
"jcseg_complex"
],
"filter": [
"lc_first_letter"
]
}
},
"tokenizer": {
"jcseg_complex": {
"type": "jcseg",
"seg_mode": "complex"
}
}
}
}
}
报错是Jcseg未知的Tokenizer,
{"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Unknown tokenizer type [jcseg] for [jcseg_complex]"
}
],
"type": "illegal_argument_exception",
"reason": "Unknown tokenizer type [jcseg] for [jcseg_complex]"
},
"status": 400}
0 个回复