I don’t know what the ReaderUtil.subReader of Lucene does. Does anybody know what it does?
See the class definition here: ReaderUtil.
Is it used to read each segment separately?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.