I moved site to new server, and my new elastic version is 7.9.2 and old version is 2.3.5
I use this command to move indexes
elasticdump --input=http://localhost:9200/nut_uk --output=nut_uk_mapping.json --type=mapping
elasticdump --input=http://localhost:9200/nut_uk --output=nut_uk_data.json --type=data
after backup I edited nut_uk_mapping.json before import to new server. Then I update elastic lib and edit search query
old query is
return [
'filtered' => [
'query' => [
'multi_match' => [
'query' => $queryString ?? '',
'type' => 'best_fields',
'minimum_should_match' => '90%',
'fields' => [
'label^3',
'content^2',
'builder_content^2',
]
],
],
'filter' => [
'bool' => [
'must' => [
['term' => ['language' => \Yii::$app->language]],
['term' => ['published' => 1]],
],
],
],
]
];
new is
return [
'bool' => [
'must' => [
'multi_match' => [
'query' => $queryString ?? '',
'type' => 'best_fields',
'minimum_should_match' => '90%',
'fields' => [
'label^3',
'content^2',
'builder_content^2',
]
],
],
'filter' => [
'bool' => [
'must' => [
['term' => ['language' => \Yii::$app->language]],
['term' => ['published' => 1]],
],
],
],
]
];
but the problem is it search nothing, old server search worked. what the problem?