As mentioned in https://github.com/oracle/opengrok/issues/1740#issuecomment-615426009 the Docker image should have the capability to reindex from scratch if the index format changes.