【发布时间】:2016-05-07 12:06:00
【问题描述】:
当我尝试使用查询在 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' },
},
},
},
【问题讨论】:
-
请提及您正在运行的查询。
标签: node.js amazon-web-services elasticsearch amazon-elasticsearch elasticsearch.js