Re: any api to get segment number of index

2018-01-14 Thread Michael McCandless
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

2018-01-10 Thread Yonghui Zhao
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.