Commit 2f260d4a authored by Adam Bramley's avatar Adam Bramley Committed by Kim Pepper
Browse files

Issue #3263986 by kim.pepper, acbramley, jessarexward: Uncaught exception when...

Issue #3263986 by kim.pepper, acbramley, jessarexward: Uncaught exception when trying to create an index that already exists
parent 4894432c
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -238,6 +238,10 @@ class BackendClient implements BackendClientInterface {
   */
  public function addIndex(IndexInterface $index): void {
    $indexId = $this->getIndexId($index);
    if ($this->indexExists($index)) {
      return;
    }

    try {
      $this->client->indices()->create([
        'index' => $indexId,