(self)
return any(s.has_deletions() for s in self.segments)
Returns True if the current index has documents that are marked deleted
        but haven't been optimized out of the index yet.
Returns True if the current index has documents that are marked deleted
        but haven't been optimized out of the index yet.
Returns True if the current index has documents that are marked deleted but haven t been optimized out of the index yet .
def has_deletions(self):
        """
        Returns True if the current index has documents that are marked deleted
        but haven't been optimized out of the index yet.
        """

        return any(s.has_deletions() for s in self.segments)
def has_deletions ( self ) : return any ( s . has_deletions ( ) for s in self . segments )