Este conteúdo não está disponível no idioma selecionado.
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 Copiar o linkLink copiado para a área de transferência!
Copiar o linkLink copiado para a área de transferência!
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 SegmentReaders. 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.