当我尝试使用查询在 AWS elasticsearch 集群上使用模板搜索时出现以下错误
“匹配”:{“标题”:“版权”}
Parse Failure [Failed to parse source [{\"match\"{\"title\":\"copyright\"}}]]];
nested: Parse Failure [No parser for element [match]]];
查询在搜索阶段失败,同时尝试解析查询。
为什么解析失败?
我的查询适用于 localhost elasticsearch 实例。
这是我对索引类型的映射:
properties: {
title: { type: 'string' },
toc: {
type: 'nested',
properties: {
title: { type: 'string' },
},
},
},