Lucene 2.9.3 是 2.x 分支的一个bug修复版本,Lucene 3.0.2 跟 2.9.3 一样修复了同一些bug,基于 Java 5。
新项目建议使用 Lucene 3.0.2 版本,因为它的 API 更加整洁而且类型安全。
同时该包含以下改进内容:
- 修复了 IndexWriter 进行大文档索引时的内存泄露问题
- NativeFSLockFactory fixes and improvements. Release write lock if exception occurs in IndexWriter ctors.
- FieldCacheImpl.getStringIndex() no longer throws an exception when term count exceeds doc count.
- 改进了 IndexReader 的并发性能
- Near real-time readers, opened while addIndexes* is running, no longer miss some segments.
- ParallelMultiSearcher 的性能提升 (3.0.2 only).
- IndexSearcher 不再抛出NegativeArraySizeException 异常,当你使用Integer.MAX_VALUE作为搜索文档数时