2016-02-26 21 views
1

查询有两个单词--->"word1""\"another word\""。我想补充两个多搜索查询到MultiSearchRequestBuilder,然后执行查询,但我得到这样的响应:Lucene抽象方法在Elasticsearch 2.2.0中执行多重分析时出现错误

{ 
    "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!

这里有什么问题?

+0

你使用嵌入式节点还是“官方”zip? –

+0

这个错误实际上来自测试用例。 –

+0

我使用官方邮编 –

回答

1

TwoPhaseIterator.matchCost已被添加到本期Lucene 5.4中:LUCENE-6276

  • ElasticSearch 2.1使用Lucene的5.3.x
  • ElasticSearch 2.2使用Lucene的5.4.x版本

你可能已经对Lucene的错误的依赖在您的测试,版本< 5.4