(post, ix=None)
return
Remove spam from index
Remove spam from index
Remove spam from index
def remove_post(post, ix=None):
    """
    Remove spam from index
    """

    ix = ix or init_index()

    # Remove this post from index
    writer = AsyncWriter(ix)
    writer.delete_by_term('uid', text=post.uid)
    writer.commit()
    logger.debug(f"Removing uid={post.uid} from index")
    return
def remove_post ( post , ix = None ) : ix = ix or init_index ( ) # Remove this post from index writer = AsyncWriter ( ix ) writer . delete_by_term ( 'uid' , text = post . uid ) writer . commit ( ) logger . debug ( f"Removing uid={post.uid} from index" ) return