Elasticsearchインスタンスを1.7から5.4.3にアップグレードし、同じクエリを使用している場合でも検索結果が2つのシステムで異なることに気付きました。1.7から5.4への移動時の弾性検索クエリの結果が異なります
Elasticsearch 1.7クエリ
{
"query": {
"filtered": {
"query": {
"multi_match": {
"query": "something",
"fields": [
"field1",
"field2",
"field3"
],
"operator": "and"
}
}
}
}
}
Elasticsearch 5.4クエリ
{
"query": {
"bool": {
"must": [
{
"multi_match": {
"query": "something",
"fields": [
"field1",
"field2",
"field3"
],
"operator": "and"
}
}
]
}
}
}
Elasticsearch 1.7における第一の検索結果がElasticsearch 5.4での第71の結果になります。 _explain
エンドポイントで1.7と5.4の間の同じ検索結果を見ると、得点が異なっていることがわかります。また、このクエリには、検索クエリが一致するシノニムが含まれます。
質問
- どれOB
Elasticsearch 5.4のために説明{ "_index": "...", "_type": "...", "_id": "...", "matched": true, "explanation": { "value": 7.1987557, "description": "sum of:", "details": [ { "value": 7.1987557, "description": "max of:", "details": [ { "value": 6.659632, "description": "weight(Synonym(field1:something field1:something2 field1:something3) in 113) [PerFieldSimilarity], result of:", "details": [ ...remainder removed for brevity
Elasticsearch 1.7のための説明両方のバージョンで同等のクエリで検索結果が大きく異なるのはなぜですか?{ "_index": "...", "_type": "...", "_id": "...", "matched": true, "explanation": { "value": 9.963562, "description": "max of:", "details": [ { "value": 3.1413355, "description": "sum of:", "details": [ { "value": 1.0609967, "description": "weight(field1:something in 13) [PerFieldSimilarity], result of:", "details": [ ...remainder removed for brevity
- 問題の一部を示し、計算のための
sum of
よりmax of
高いElasticsearch 1.7ショーの_explain
クエリこと、そしてそれがElasticsearch 5.4用反対であるという事実をしていますか?