def _delete_doc_from_index(index_writer, docid):
        """
        Remove a document from the index
        """
        query = whoosh.query.Term("docid", docid)
        index_writer.delete_by_query(query)
def _delete_doc_from_index ( index_writer , docid ) : query = whoosh . query . Term ( "docid" , docid ) index_writer . delete_by_query ( query )
Remove a document from the index