17
17
use Algolia \AlgoliaSearch \Service \Category \IndexOptionsBuilder as CategoryIndexOptionsBuilder ;
18
18
use Algolia \AlgoliaSearch \Service \Page \IndexOptionsBuilder as PageIndexOptionsBuilder ;
19
19
use Algolia \AlgoliaSearch \Service \Product \IndexOptionsBuilder as ProductIndexOptionsBuilder ;
20
- use Algolia \AlgoliaSearch \Service \ReplicaSettingsHandler ;
20
+ use Algolia \AlgoliaSearch \Service \IndexSettingsHandler ;
21
21
use Algolia \AlgoliaSearch \Service \Suggestion \IndexOptionsBuilder as SuggestionIndexOptionsBuilder ;
22
22
use Magento \Framework \Exception \NoSuchEntityException ;
23
23
@@ -38,7 +38,7 @@ public function __construct(
38
38
protected SuggestionHelper $ suggestionHelper ,
39
39
protected AdditionalSectionHelper $ additionalSectionHelper ,
40
40
protected AlgoliaCredentialsManager $ algoliaCredentialsManager ,
41
- protected ReplicaSettingsHandler $ replicaSettingsHandler ,
41
+ protected IndexSettingsHandler $ indexSettingsHandler ,
42
42
protected DiagnosticsLogger $ logger
43
43
) {}
44
44
@@ -110,7 +110,7 @@ protected function setCategoriesSettings(int $storeId): void
110
110
$ settings = $ this ->categoryHelper ->getIndexSettings ($ storeId );
111
111
$ indexOptions = $ this ->categoryIndexOptionsBuilder ->buildEntityIndexOptions ($ storeId );
112
112
113
- $ this ->replicaSettingsHandler ->setSettings ($ indexOptions , $ settings );
113
+ $ this ->indexSettingsHandler ->setSettings ($ indexOptions , $ settings );
114
114
115
115
$ this ->logger ->log ('Index name: ' . $ indexOptions ->getIndexName ());
116
116
$ this ->logger ->log ('Settings: ' . json_encode ($ settings ));
@@ -130,7 +130,7 @@ protected function setPagesSettings(int $storeId): void
130
130
$ settings = $ this ->pageHelper ->getIndexSettings ($ storeId );
131
131
$ indexOptions = $ this ->pageIndexOptionsBuilder ->buildEntityIndexOptions ($ storeId );
132
132
133
- $ this ->replicaSettingsHandler ->setSettings ($ indexOptions , $ settings );
133
+ $ this ->indexSettingsHandler ->setSettings ($ indexOptions , $ settings );
134
134
135
135
$ this ->logger ->log ('Index name: ' . $ indexOptions ->getIndexName ());
136
136
$ this ->logger ->log ('Settings: ' . json_encode ($ settings ));
@@ -150,7 +150,7 @@ protected function setQuerySuggestionsSettings(int $storeId): void
150
150
$ settings = $ this ->suggestionHelper ->getIndexSettings ($ storeId );
151
151
$ indexOptions = $ this ->suggestionIndexOptionsBuilder ->buildEntityIndexOptions ($ storeId );
152
152
153
- $ this ->replicaSettingsHandler ->setSettings ($ indexOptions , $ settings );
153
+ $ this ->indexSettingsHandler ->setSettings ($ indexOptions , $ settings );
154
154
155
155
$ this ->logger ->log ('Index name: ' . $ indexOptions ->getIndexName ());
156
156
$ this ->logger ->log ('Settings: ' . json_encode ($ settings ));
@@ -179,7 +179,7 @@ protected function setAdditionalSectionsSettings(int $storeId): void
179
179
$ settings = $ this ->additionalSectionHelper ->getIndexSettings ($ storeId );
180
180
$ indexOptions = $ this ->indexOptionsBuilder ->buildWithEnforcedIndex ($ indexName , $ storeId );
181
181
182
- $ this ->replicaSettingsHandler ->setSettings ($ indexOptions , $ settings );
182
+ $ this ->indexSettingsHandler ->setSettings ($ indexOptions , $ settings );
183
183
184
184
$ this ->logger ->log ('Index name: ' . $ indexName );
185
185
$ this ->logger ->log ('Settings: ' . json_encode ($ settings ));
0 commit comments