开发者

setTermInfosIndexDivisor problem in IndexReader with Lucene 3.0.2

开发者 https://www.devze.com 2023-02-04 16:48 出处:网络
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

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

精彩评论

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