While experimenting with indexReader 'components', I've got this thought:

What if we always create MultiSegmentReader when (re)opening an index,
even if index contains a single segment?
Using unwrapped SegmentReader for single-segment case was a valid
optimization for the times when Lucene did collection over a single
reader, but now it goes down to SegmentReaders anyway.

If we do that, (re)open logic will become a lot more transparent. (And
consequently, hooking into it)

-- 
Kirill Zakharenko/Кирилл Захаренко (ear...@gmail.com)
Home / Mobile: +7 (495) 683-567-4 / +7 (903) 5-888-423
ICQ: 104465785

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to