查询是针对两个单词-> "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中不工作!
这里有什么问题?
发布于 2016-02-26 21:48:27
TwoPhaseIterator.matchCost是在Lucene5.4中添加的:卢塞尼-6276。
您可能在测试中错误地依赖Lucene,一个版本< 5.4
https://stackoverflow.com/questions/35661768
复制相似问题