首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Elasticsearch 2.2.0中执行多重搜索时Lucene抽象方法错误

在Elasticsearch 2.2.0中执行多重搜索时Lucene抽象方法错误
EN

Stack Overflow用户
提问于 2016-02-26 21:08:00
回答 1查看 47关注 0票数 1

查询是针对两个单词-> "word1""\"another word\""。我将两个多搜索查询添加到一个MultiSearchRequestBuilder中,然后执行该查询,但我得到了以下响应:

代码语言:javascript
复制
{
  "responses" : [ {
    "took" : 22,
    "timed_out" : false,
    "_shards" : {
      "total" : 6,
      "successful" : 4,
      "failed" : 2,
      "failures" : [ {
        "shard" : 2,
        "index" : "elasticsearch.test",
        "node" : "99LdzvW_T0aBY4UOzNHAIA",
        "reason" : {
          "type" : "abstract_method_error",
          "reason" : "org.apache.lucene.search.TwoPhaseIterator.matchCost()F"
        }
      } ]
    },
    "hits" : {
      "total" : 0,
      "max_score" : null,
      "hits" : [ ]
    }
  }, {
    "took" : 18,
    "timed_out" : false,
    "_shards" : {
      "total" : 6,
      "successful" : 5,
      "failed" : 1,
      "failures" : [ {
        "shard" : 2,
        "index" : "elasticsearch.test",
        "node" : "rdK2996KQz-H0khDgW7mKg",
        "reason" : {
          "type" : "abstract_method_error",
          "reason" : "org.apache.lucene.search.TwoPhaseIterator.matchCost()F"
        }
      } ]
    },
    "hits" : {
      "total" : 0,
      "max_score" : null,
      "hits" : [ ]
    }
  } ]
}

问题是它在ES 2.1.1中工作,但在ES 2.2.0中不工作!

这里有什么问题?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-02-26 21:48:27

TwoPhaseIterator.matchCost是在Lucene5.4中添加的:卢塞尼-6276

  • ElasticSearch 2.1使用Lucene 5.3.x
  • ElasticSearch 2.2使用Lucene 5.4.x

您可能在测试中错误地依赖Lucene,一个版本< 5.4

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35661768

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档