gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 23:31:44 24 4
gpt4 key购买 nike

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

{
"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中无效!

这是什么问题?

最佳答案

Lucene 5.4已在此问题中添加了TwoPhaseIterator.matchCost:LUCENE-6276

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

  • 您的测试中对Lucene的依赖性可能错误,版本低于5.4

    关于elasticsearch - 在Elasticsearch 2.2.0中执行多重搜索时,Lucene抽象方法错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35661768/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com