Maybe I am missing something. I don't see any calls that would gimme the number of segments. Are you suggesting: IndexCommit.getFileNames().size()?
Thanks -John On Tue, Mar 31, 2009 at 1:04 PM, Yonik Seeley <[email protected]>wrote: > On Tue, Mar 31, 2009 at 3:43 PM, John Wang <[email protected]> wrote: > > Can we have an API that exposes index information, e.g. number of > segments > > etc.? > > Should already all be obtainable via public access: > IndexReader.getSequentialSubReaders() and > IndexReader.getIndexCommit() > > > -Yonik > http://www.lucidimagination.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
