Dispatch event when index is created

Created on 17 February 2023, over 1 year ago
Updated 2 March 2023, over 1 year ago

Problem/Motivation

The whole index gets cleared and rebuilt any time a change to a field occurs and because our index is quite large this is problematic for us since we can't afford down time in our search for that long. So we settled on rotating indexes where we have an a and b index, where one is the index being read from and one is the index being written to and we use OS aliases so that the front end code can always read just from the alias. However because the index is destroyed the alias mapping to the index is also destroyed, which can be quite annoying when testing changes locally as we need to re-index and then manually re-create the aliases.

We need a way to notify developers when the index is created/re-created, so we we can add the aliases back.

Steps to reproduce

Proposed resolution

An event that fires containing the index that was acted on, allowing developers to respond how they wish.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

achap πŸ‡¦πŸ‡Ί

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024