我有一个与和spring boot
集成的应用程序。Hibernate Search 6.0.2.Final
Elasticsearch
当我的应用程序第一次启动时,我必须在ElasticSearch
. 由于我的应用程序将在多个 pod 上运行,我相信我不能使用MassIndexer
,因为它会在应用程序启动期间在每个节点上运行。
其次,在创建架构和索引之后Elasticsearch
,假设我在Entity
类中添加另一个字段,那么我将不得不添加update the schema
和drop-recreate
索引。
看起来schema management
and drop-recreate
of 索引应该在 Spring Boot 应用程序之外完成。我怎样才能做到这一点Hibernate Search Schema and Index management
?