【问题标题】:Elasticsearch Error: SearchPhaseExecutionException: SearchParseExceptionElasticsearch 错误:SearchPhaseExecutionException:SearchParseException
【发布时间】: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


【解决方案1】:

与 2.1 相比,AWS Elasticsearch 服务支持旧版本的 elasticsearch,即 1.5.2。 这个旧版本支持不同的模板搜索语法,其中使用 template 属性而不是 inline 属性来提供模板,显示 here

【讨论】:

    猜你喜欢
    • 2022-11-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-03
    • 2016-02-26
    • 2018-11-16
    • 2017-11-19
    • 2016-03-02
    相关资源
    最近更新 更多