def delete(self, docids):
logger.debug("<STR_LIT>" % (len(docids), self))<EOL>deleted = <NUM_LIT:0><EOL>for docid in docids:<EOL><INDENT>try:<EOL><INDENT>del self.id2pos[docid]<EOL>deleted += <NUM_LIT:1><EOL>del self.id2sims[docid]<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>self.id2sims.sync()<EOL>if deleted:<EOL><INDENT>logger.info("<STR_LIT>" % (deleted, self))<EOL><DEDENT>self.update_mappings()<EOL>
Delete documents (specified by their ids) from the index.