File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1616
1717namespace Pimcore \Bundle \GenericDataIndexBundle \Service \SearchIndex ;
1818
19- use Pimcore \Bundle \GenericDataIndexBundle \SearchIndexAdapter \OpenSearch \ OpenSearchService ;
19+ use Pimcore \Bundle \GenericDataIndexBundle \SearchIndexAdapter \DefaultSearch \ DefaultSearchService ;
2020use Psr \Log \LoggerAwareTrait ;
2121
2222/**
@@ -75,12 +75,12 @@ public function getShortIndexName(string $name): string
7575 $ name = substr ($ name , 0 , strlen ($ this ->getIndexPrefix ()));
7676 }
7777
78- if (str_ends_with ($ name , '- ' . OpenSearchService ::INDEX_VERSION_ODD )) {
79- $ name = substr ($ name , strlen ('- ' . OpenSearchService ::INDEX_VERSION_ODD ));
78+ if (str_ends_with ($ name , '- ' . DefaultSearchService ::INDEX_VERSION_ODD )) {
79+ $ name = substr ($ name , strlen ('- ' . DefaultSearchService ::INDEX_VERSION_ODD ));
8080 }
8181
82- if (str_ends_with ($ name , '- ' . OpenSearchService ::INDEX_VERSION_EVEN )) {
83- $ name = substr ($ name , strlen ('- ' . OpenSearchService ::INDEX_VERSION_EVEN ));
82+ if (str_ends_with ($ name , '- ' . DefaultSearchService ::INDEX_VERSION_EVEN )) {
83+ $ name = substr ($ name , strlen ('- ' . DefaultSearchService ::INDEX_VERSION_EVEN ));
8484 }
8585
8686 return $ name ;
You can’t perform that action at this time.
0 commit comments