此内容没有您所选择的语言版本。
2.3. Reader strategy
When executing a query, Hibernate Search interacts with the Apache Lucene indexes through a reader strategy. chosing a reader strategy will depend on the profile of the application (frequent updates, read mostly, asynchronous index update etc). See also Section 3.6, “Reader strategy configuration”
2.3.1. Shared 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
With this strategy, Hibernate Search will share the same
IndexReader
, for a given Lucene index, across multiple queries and threads provided that the IndexReader
is still up-to-date. If the IndexReader
is not up-to-date, a new one is opened and provided. Each IndexReader
is made of several SegmentReader
s. This strategy only reopens segments that have been modified or created after last opening and shares the already loaded segments from the previous instance. This strategy is the default.
The name of this strategy is
shared
.