File tree Expand file tree Collapse file tree
src/module-elasticsuite-core/Setup Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ public function __construct(
8888 * {@inheritDoc}
8989 *
9090 * @SuppressWarnings(PHPMD.CyclomaticComplexity)
91+ * @SuppressWarnings(PHPMD.NPathComplexity)
9192 */
9293 public function configure (array $ inputOptions )
9394 {
@@ -110,5 +111,10 @@ public function configure(array $inputOptions)
110111 $ esHosts = sprintf ('%s:%s ' , $ inputOptions ['elasticsearch-host ' ], $ inputOptions ['elasticsearch-port ' ]);
111112 $ this ->configWriter ->save (self ::ES_CLIENT . 'servers ' , $ esHosts );
112113 }
114+
115+ if (isset ($ inputOptions ['opensearch-host ' ]) && isset ($ inputOptions ['opensearch-port ' ])) {
116+ $ esHosts = sprintf ('%s:%s ' , $ inputOptions ['opensearch-host ' ], $ inputOptions ['opensearch-port ' ]);
117+ $ this ->configWriter ->save (self ::ES_CLIENT . 'servers ' , $ esHosts );
118+ }
113119 }
114120}
You can’t perform that action at this time.
0 commit comments