Skip to content

Commit 0b455a5

Browse files
committed
AC-6631: Update OpenSearch to the v2.x
1 parent 6f160d7 commit 0b455a5

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

app/code/Magento/AdvancedSearch/Helper/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Data extends AbstractHelper
2121
/**
2222
* @var EngineResolverInterface
2323
*/
24-
protected $engineResolver;
24+
public $engineResolver;
2525

2626
/**
2727
* @param Context $context

app/code/Magento/AdvancedSearch/Model/Client/ClientFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class ClientFactory implements ClientFactoryInterface
1212
{
1313
/**
14-
* Object manager
14+
* Object var
1515
*
1616
* @var ObjectManagerInterface
1717
*/
@@ -34,9 +34,9 @@ class ClientFactory implements ClientFactoryInterface
3434

3535
/**
3636
* @param ObjectManagerInterface $objectManager
37-
* @param $clientClass
37+
* @param string $clientClass
3838
* @param Data $helper
39-
* @param $openSearch
39+
* @param string|null $openSearch
4040
*/
4141
public function __construct(
4242
ObjectManagerInterface $objectManager,

app/code/Magento/OpenSearch/Model/SearchClient.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class SearchClient implements ClientInterface
4242
/**
4343
* @var DynamicTemplatesProvider|null
4444
*/
45-
protected $dynamicTemplatesProvider;
45+
public $dynamicTemplatesProvider;
4646

4747
/**
4848
* Initialize Client
@@ -93,7 +93,7 @@ public function suggest(array $query): array
9393
*
9494
* @return Client
9595
*/
96-
protected function getOpenSearchClient(): Client
96+
public function getOpenSearchClient(): Client
9797
{
9898
$pid = getmypid();
9999
if (!isset($this->client[$pid])) {
@@ -371,7 +371,7 @@ public function deleteMapping(string $index, string $entityType)
371371
* @param array $properties
372372
* @return array
373373
*/
374-
protected function applyFieldsMappingPreprocessors(array $properties): array
374+
public function applyFieldsMappingPreprocessors(array $properties): array
375375
{
376376
foreach ($this->fieldsMappingPreprocessors as $preprocessor) {
377377
$properties = $preprocessor->process($properties);

0 commit comments

Comments
 (0)