开发者

What is the subReader used for in Lucene?

开发者 https://www.devze.com 2023-03-16 01:09 出处:网络
I don\'t know what the ReaderUtil.subReader of Lucene does. Does anybody know what it does? S开发者_如何学编程ee the class definition here: ReaderUtil.

I don't know what the ReaderUtil.subReader of Lucene does. Does anybody know what it does?

S开发者_如何学编程ee the class definition here: ReaderUtil.

Is it used to read each segment separately?


A Lucene index is divided into segments. In short, from each segment only a chunk of the index is read. And subreaders are the actual readers which work directly on a segment (one segment => one segment reader). And the IndexReader, which clients use, is an aggregated implementation that uses the subreaders to perform the actual work.

0

精彩评论

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