Planning to upgrade from ES 5.6.7 to ES7.X,;
During the test, the index data in ES5 was migrated to ES7, and performance comparison was performed in a specific scenario. It was found that the search time of ES7 decreased severely with the increase of search word.
cost time detail:
ES5:
"score": 12630451,
"build_scorer_count": 63,
"match_count": 0,
"create_weight": 4035705,
"next_doc": 0,
"match": 0,
"create_weight_count": 1,
"next_doc_count": 0,
"score_count": 8332,
"build_scorer": 591863,
"advance": 36341745,
"advance_count": 54158
ES7:
"set_min_competitive_score_count": 0,
"match_count": 0,
"shallow_advance_count": 0,
"set_min_competitive_score": 0,
"next_doc": 0,
"match": 0,
"next_doc_count": 0,
"score_count": 9276,
"compute_max_score_count": 0,
"compute_max_score": 0,
"advance": 31980019,
"advance_count": 42472,
"score": 74502869,
"build_scorer_count": 56,
"create_weight": 2902138,
"shallow_advance": 0,
"create_weight_count": 1,
"build_scorer": 929773
ES5 version:5.6.7 jdk:1.8.0_131
ES7 version:7.7.1 jdk :14.0.1
The same amount of data, the same machine configuration
I want to know why in the scoring stage, ES7 takes several times longer than ES5. This is a problem with the design of ES7 itself, or because I didn't optimize it properly.
Hope someone can help answer