我正在尝试使用以下设置在elasticsearch中创建索引。我面临以下错误
错误: RemoteTransportException [[ys2order-stg2-01] [INET [/64.101.206.15:9300] [指数:管理/映射/放]]; 嵌套:MapperParsingException [找不到Analyzer [autocomplete] 字段[DESCRIPTION_AUTO]];状态:400
$testPath
答案 0 :(得分:0)
您需要删除分析仪名称中的空格:
"analyzer": {
" autocomplete": { <--- remove initial space here
"type": "custom",
"filter": [
"lowercase",
"autocomplete_filter"
],
"tokenizer": "standard"
}
....
"DESCRIPTION_AUTO": {
"index_analyzer": "autocomplete", <-- because there is no initial space here !!!
"search_analyzer": "standard",
"type": "string"
}