lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: any api to get segment number of index
Date Sun, 14 Jan 2018 23:07:10 GMT
How about IndexSearcher.getIndexReader().leaves().size()?

Mike McCandless

http://blog.mikemccandless.com

On Wed, Jan 10, 2018 at 5:19 AM, Yonghui Zhao <zhaoyonghui@gmail.com> 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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message