开发者

setTermInfosIndexDivisor problem in IndexReader with Lucene 3.0.2

I am upgrading lucene 2.4.1 to 3.0.2 in my java web project, in I开发者_JS百科ndexReader Lucene 2.4.1 has method setTermInfosIndexDivisor but in Lucene 3.0.2 we have to set it on opening an IndexReader

my question is how we can set TermInfosIndexDivisor if i don't have indexDeletionPolicy?? because when opening an IndexReader if you want to set TermInfosIndexDivisor then you also have to pass indexDeletionPolicy in Lucene 3.0.2


A guess, but passing null will make it default to a KeepOnlyLastCommitDeletionPolicy. At least, that's how it works in 2.9.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜