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 89
89
// }
90
90
// var_dump($rules);
91
91
92
- $ configForIngestion = $ config ->setTransformationRegion ('eu ' );
92
+ $ configForIngestion = $ config ->setFullHosts ([ ' http://localhost:6689 ' ])-> setTransformationRegion ('eu ' );
93
93
94
94
$ clientWithTransformation = SearchClient::createWithConfig ($ configForIngestion );
95
95
Original file line number Diff line number Diff line change @@ -109,7 +109,11 @@ use Algolia\AlgoliaSearch\Exceptions\NotFoundException;
109
109
$ingestionConfig = IngestionConfig::create($config -> getAppId (), $config -> getAlgoliaApiKey (), $config -> getTransformationRegion ());
110
110
111
111
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
+ }
113
117
}
114
118
115
119
$client->ingestionTransporter = IngestionClient::createWithConfig($ingestionConfig);
You can’t perform that action at this time.
0 commit comments