(self, indexname=None)
return False
Returns True if a non-empty index exists in this storage.

        :param indexname: the name of the index within the storage object. You
            can use this option to store multiple indexes in the same storage.
        :rtype: bool
Returns True if a non-empty index exists in this storage.
Returns True if a non - empty index exists in this storage .
def index_exists(self, indexname=None):
        """Returns True if a non-empty index exists in this storage.

        :param indexname: the name of the index within the storage object. You
            can use this option to store multiple indexes in the same storage.
        :rtype: bool
        """

        if indexname is None:
            indexname = _DEF_INDEX_NAME
        try:
            ix = self.open_index(indexname)
            gen = ix.latest_generation()
            ix.close()
            return gen > -1
        except EmptyIndexError:
            pass
        return False
def index_exists ( self , indexname = None ) : if indexname is None : indexname = _DEF_INDEX_NAME try : ix = self . open_index ( indexname ) gen = ix . latest_generation ( ) ix . close ( ) return gen > - 1 except EmptyIndexError : pass return False