def deindex_document(doc, **kwargs):
    key = keys.document_key(doc['_id'])
    tokens = []
    for indexer in config.INDEXERS:
        indexer.deindex(DB, key, doc, tokens, **kwargs)
def deindex_document(doc, **kwargs):
    key = keys.document_key(doc['_id'])
    tokens = []
    for indexer in config.INDEXERS:
        indexer.deindex(DB, key, doc, tokens, **kwargs)