Something like a drop-and-recreate method would be sufficient for our purposes; with Elasticsearch auto-index-creation disabled, the upgrade procedure for a cluster of applications using Hibernate Search on Elasticsearch as a cache/fast-lookup index could be something like:
- Upgrade all nodes to latest version
- Initiate a reindexing with a drop-and-recreate schema option
I don’t see dropAndCreateIndexes on MassIndexer presently – you were talking about that as a possible feature to add, correct? As far as I can tell the only way to have Hibernate Search recreate the indexes is for them to not be there when the session factory is initialized. |