(self)
Override for pagination slice from ES
            Returns an integer.
Override for pagination slice from ES
            Returns an integer.
Override for pagination slice from ES Returns an integer .
def total_records(self):
        """
            Override for pagination slice from ES
            Returns an integer.
        """
        res = self.es_results
        if res is not None:
            return res['hits'].get('total', 0)
        else:
            return 0
def total_records ( self ) : res = self . es_results if res is not None : return res [ 'hits' ] . get ( 'total' , 0 ) else : return 0