7.8.7. 禁用 Hibernate Search
可以根据需要部分或完全禁用 Hibernate 搜索.可以禁用 Hibernate Search 的索引,例如,如果索引是只读的,或者您更喜欢手动执行索引,而不是自动执行。也可以完全禁用 Hibernate 搜索,防止索引和搜索。
- 禁用索引
要禁用 Hibernate Search 索引,请将 indexing
_strategy
配置选项更改为manual
,然后重新启动 JBoss EAP。hibernate.search.indexing_strategy = manual
hibernate.search.indexing_strategy = manual
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 完全禁用 Hibernate 搜索
要完全禁用 Hibernate 搜索,请通过将
autoregister_listeners
配置选项更改为false
来禁用所有侦听器,然后重新启动 JBoss EAP。hibernate.search.autoregister_listeners = false
hibernate.search.autoregister_listeners = false
Copy to Clipboard Copied! Toggle word wrap Toggle overflow