(self)
The estimated maximum number of matching documents, or the
        exact number of matching documents if it's known.
The estimated maximum number of matching documents, or the
        exact number of matching documents if it's known.
The estimated maximum number of matching documents or the exact number of matching documents if it s known .
def estimated_length(self):
        """The estimated maximum number of matching documents, or the
        exact number of matching documents if it's known.
        """

        if self.has_exact_length():
            return len(self)
        else:
            return self.q.estimate_size(self.searcher.reader())
def estimated_length ( self ) : if self . has_exact_length ( ) : return len ( self ) else : return self . q . estimate_size ( self . searcher . reader ( ) )