I have that lines of code:

CloudSolrServer solrServer = SolrCloudServerFactory.getCloudSolrServer();
NamedList<Object> namedList = solrServer.request(new LukeRequest());
NamedList<Object> index = (NamedList<Object>) namedList.get("index");
System.out.println(index.get("segmentCount"));

It prints 5 into system out. However when I open admin page and click
collection1 at core select list. Under statistics part I see that:

Segment Count: 1

Which one is true?

Reply via email to