-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Description
Describe the feature:
When opening an index using the _open command, its sometimes needed to wait for the index to be fully opened and usable before running additional commands on the index.
For example, when trying to compress an index using the codec: "best_compressions" index config, you need to first close the index, change the setting, open the index, and then forcemerge it for the compression to take effect.
If you run both the open command and the forcemerge command one after the other in the same script, the forcemerge will exit instantly (probably because the index is not yet "loaded" or something).
It would be great to add the wait_for_completion query parameter like in other commands so that it will be possible to synchronously wait for the opening to complete.