https://github.com/floragunncom/search-guard-enterprise-modu...
In particular, the change to getLiveDocs(): https://github.com/floragunncom/search-guard-enterprise-modu...
and numDocs(): https://github.com/floragunncom/search-guard-enterprise-modu...
EDIT:
At least in the case of numDocs(), both Elastic and Search Guard's implementations seem to be based on this bit of Apache-licensed code from Lucene (or perhaps this is just a common pattern for counting live documents?):
https://github.com/apache/lucene-solr/blob/branch_6_3/lucene...