I am currently using the MassIndexer like so to reindex my entities:
fullTextSession.createIndexer().startAndWait();
However, I have learned that the MassIndexer does not drop the existing mappings. It seems like the only way to drop mappings is to set the index_schema_management_strategy
to 'drop-and-create', which is not recommended to be used in a production environment.
I have tried hitting elastic search directly using the DELETE index API before reindexing with the MassIndexer, but that introduces strange behavior with our mappings.
What is the recommended way to drop an index and it's mappings, and then rebuild that index using the MassIndexer?