markrmiller commented on a change in pull request #214: URL: https://github.com/apache/solr/pull/214#discussion_r683081223
########## File path: solr/core/src/java/org/apache/solr/core/SolrCore.java ########## @@ -487,6 +488,14 @@ public long getIndexSize() { return size; } + public int getSegmentCount() { + try { + return withSearcher( solrIndexSearcher -> solrIndexSearcher.getRawReader().getIndexCommit().getSegmentCount()); Review comment: @sonatype-lift ignore -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org