Re: API to get index info

2009-03-31 Thread John Wang
Excellent! Thanks -John On Tue, Mar 31, 2009 at 2:25 PM, Yonik Seeley wrote: > On Tue, Mar 31, 2009 at 4:55 PM, John Wang 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()? > > Ind

Re: API to get index info

2009-03-31 Thread Yonik Seeley
On Tue, Mar 31, 2009 at 4:55 PM, John Wang 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

Re: API to get index info

2009-03-31 Thread John Wang
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 wrote: > On Tue, Mar 31, 2009 at 3:43 PM, John Wang wrote: > > Can we have an API that

Re: API to get index info

2009-03-31 Thread Yonik Seeley
On Tue, Mar 31, 2009 at 3:43 PM, John Wang 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.co