def read_stats(self):
        if not os.path.exists(self.stats_path):
            return {
                'version': '.'.join([str(bit) for bit in __version__]),
                'total_docs': 0,
            }

        with open(self.stats_path, 'r') as stats_file:
            return json.load(stats_file)
Reads the index-wide stats.
dataset/ETHPy150Open toastdriven/microsearch/microsearch.py/Microsearch.read_stats