I'd like to separate the process of creating the index (including settings and mapping) from the rest of the application to have more control over the behaviour of my application. My spring boot project creates the index automatically on startup. Is there a way to disable the automatic index creation process?
@Document annotation has createIndex property which is by default set to true. Just set it to:
@Document(indexName = "products", createIndex = false)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With