def fulltext_fuzzy_match_filter(string):
    from haystack.query import SQ
    # TODO: Searching in this way might be slow. We should investigate 
    # alternatives for it.
    if string:
        return reduce(operator.__or__, 
            [SQ(text='"%s~"' % w) for w in string.split()])
    else:
        return SQ(text='""')
Take a string and return a filter to be used on the SearchQuerySet.
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/txcommon/haystack_utils.py/fulltext_fuzzy_match_filter