2016-02-26 12 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

相關問題