Skip to content

Commit 5ab3da3

Browse files
committed
AC-6631:Update OpenSearch to the v2.x
1 parent 9e4da87 commit 5ab3da3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dev/tests/integration/_files/Magento/TestModuleCatalogSearch/Model/SearchEngineVersionReader.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class SearchEngineVersionReader
2727
public function getFullVersion(): string
2828
{
2929
$version = $this->getVersion();
30+
if (strtolower($this->getDistribution()) == 'opensearch') {
31+
$version = 1;
32+
}
3033
return $this->getDistribution() . ($version === 1 ? '' : $version);
3134
}
3235

0 commit comments

Comments
 (0)