Problem/Motivation

If I deploy config to an existing application that changes the index, search api will try an update the index. If the index doesn't exist (e.g in CI or a new environment) the operation fails.

Proposed resolution

Run addIndex instead if the index doesn't exist.

CommentFileSizeAuthor
#2 3272830-2.patch628 bytesacbramley

Comments

acbramley created an issue. See original summary.

acbramley’s picture

Status: Active » Needs review
StatusFileSize
new628 bytes

Not sure if there's a good way to test this but here's the fix.

kim.pepper’s picture

Although, Search API checks if the 'server' config entity exists already, this is apparently not enough.

  • kim.pepper committed 9b8557e on 1.x authored by acbramley
    Issue #3272830 by acbramley: Update index throws exception if index...
kim.pepper’s picture

Status: Needs review » Fixed

Committed and pushed to 1.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.