lucene-4-3-1备份报”No index commit to snapshot”异常

11月 17, 2015 |

学习lucene比较全面的资料只有《lucene in action》这本书,而它是基于lucene3.0.2版本编写的很多时候会遇到某些方法不存在的问题。google一番后发现如下的问题:
The problem is that the SnapshotDeletionPolicy you use to configure the IndexWriter initially, is NOT the same one that the IndexWriter uses. On construction, the IndexWriter actually clones the SnapshotDeletionPolicy you passed in, so the first block of code above should look like this instead:


Posted in: Lucene

Comments are closed.