Hi all

In my Solr 6.6 based code, I have the following line that get the total
number of documents in a collection:


where indexSearcher is an instance of "SolrIndexSearcher".

With Solr 7.2.1, 'getStatistics' is no longer available, and it seems that
it is replaced by 'collectionStatistics' or 'termStatistics':

So my questions is what is the equivalent statement in solr 7.2.1? Is it:


The API warns that it is still experimental and might change in
incompatible ways in the next release. Is there more 'stable' code for
getting this done?


Reply via email to