Loading src/SearchAPI/BackendClient.php +8 −2 Original line number Diff line number Diff line Loading @@ -257,9 +257,15 @@ class BackendClient implements BackendClientInterface { * {@inheritdoc} */ public function updateIndex(IndexInterface $index): void { if ($this->indexExists($index)) { $index->clear(); $this->updateSettings($index); $this->updateFieldMapping($index); } else { $this->addIndex($index); } } /** * Updates the field mappings for an index. Loading Loading
src/SearchAPI/BackendClient.php +8 −2 Original line number Diff line number Diff line Loading @@ -257,9 +257,15 @@ class BackendClient implements BackendClientInterface { * {@inheritdoc} */ public function updateIndex(IndexInterface $index): void { if ($this->indexExists($index)) { $index->clear(); $this->updateSettings($index); $this->updateFieldMapping($index); } else { $this->addIndex($index); } } /** * Updates the field mappings for an index. Loading