3.6. リーダー方針の設定
さまざまなリーダー方針が 「リーダー方針」 で説明されています。デフォルトの方針は以下のとおりです。
shared
: 複数のクエリでインデックスリーダーを共有します。この方針は最も効率的です。not-shared
: 各クエリのインデックスリーダーを作成します。
デフォルトのリーダー方針は
shared
です。これは調整できます。
hibernate.search.reader.strategy = not-shared
hibernate.search.reader.strategy = not-shared
このプロパティスイッチを
not-shared
方針に追加します。
または、カスタムリーダー方針を使用する場合:
hibernate.search.reader.strategy = my.corp.myapp.CustomReaderProvider
hibernate.search.reader.strategy = my.corp.myapp.CustomReaderProvider
ここで、
my.corp.myapp.CustomReaderProvider
はカスタム方針実装です。