查询是两个字---> "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 !!
这里有什么问题?
答案 0 :(得分:1)
TwoPhaseIterator.matchCost
:LUCENE-6276。
您的测试中可能存在对Lucene的错误依赖,版本< 5.4