我使用 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();
坦克前进!
阿尔乔姆