1 Apr 2009 04:22
Re: API to get index info
John Wang <john.wang <at> gmail.com>
2009-04-01 02:22:52 GMT
2009-04-01 02:22:52 GMT
Excellent! Thanks -John On Tue, Mar 31, 2009 at 2:25 PM, Yonik Seeley <yonik <at> lucidimagination.com>wrote: > On Tue, Mar 31, 2009 at 4:55 PM, John Wang <john.wang <at> gmail.com> wrote: > > Maybe I am missing something. I don't see any calls that would gimme the > > number of segments. Are you suggesting: > IndexCommit.getFileNames().size()? > > IndexReader.getSequentialSubReaders().length > > The stats page of Solr now displays the number of segments in the > current index using this. > > -Yonik > http://www.lucidimagination.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe <at> lucene.apache.org > For additional commands, e-mail: java-user-help <at> lucene.apache.org > >
RSS Feed