File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 8989// }
9090// var_dump($rules);
9191
92- $ configForIngestion = $ config ->setTransformationRegion ('eu ' );
92+ $ configForIngestion = $ config ->setFullHosts ([ ' http://localhost:6689 ' ])-> setTransformationRegion ('eu ' );
9393
9494$ clientWithTransformation = SearchClient::createWithConfig ($ configForIngestion );
9595
Original file line number Diff line number Diff line change @@ -109,7 +109,11 @@ use Algolia\AlgoliaSearch\Exceptions\NotFoundException;
109109 $ingestionConfig = IngestionConfig::create($config -> getAppId (), $config -> getAlgoliaApiKey (), $config -> getTransformationRegion ());
110110
111111 if ($hosts = $config -> getHosts ()) {
112- $ingestionConfig = $ingestionConfig -> setHosts ($hosts );
112+ if ($config -> getHasFullHosts ()) {
113+ $ingestionConfig = $ingestionConfig -> setFullHosts ($hosts );
114+ } else {
115+ $ingestionConfig = $ingestionConfig -> setHosts ($hosts );
116+ }
113117 }
114118
115119 $client->ingestionTransporter = IngestionClient::createWithConfig($ingestionConfig);
You can’t perform that action at this time.
0 commit comments