Re: any api to get segment number of index
How about IndexSearcher.getIndexReader().leaves().size()? Mike McCandless http://blog.mikemccandless.com On Wed, Jan 10, 2018 at 5:19 AM, Yonghui Zhao wrote: > Hi, > > Is there any public API that I can get segment number of current version > index? > > I didn't find in indexwriter or indexsearcher in lucene 4.10. >
any api to get segment number of index
Hi, Is there any public API that I can get segment number of current version index? I didn't find in indexwriter or indexsearcher in lucene 4.10.