MassIndexer を使用してインデックスを作成します。3.2.1 から Hibernate-search 3.4 に移行した後、ファイルの最終的な数は本当に膨大です (.cfs 拡張子付き)。大丈夫だった前に。同時に lucene-core 3.1.0 に移行
なぜそれが起こったのか誰か説明してもらえますか?
MassIndexer massIndexe = fullTextSession.createIndexer(SearchLuceneDocument.class);
massIndexe.purgeAllOnStart(true) // true by default, highly recommended
.optimizeAfterPurge(true) // true is default, saves some disk space
.optimizeOnFinish(true) // true by default
.batchSizeToLoadObjects(100)
.threadsForSubsequentFetching(15)
.threadsToLoadObjects(10)
.threadsForIndexWriter(4)
.cacheMode(CacheMode.IGNORE) // defaults to CacheMode.IGNORE
.startAndWait();
前進する戦車!
アルテム