def get_substring_filter(self, query):
    query = re.escape(query.lower())
    # abc -> *abc*
    flt = "\n.*%s.*\n" % query
    return (flt, False)
dataset/ETHPy150Open natduca/quickopen/src/db_index_shard.py/DBIndexShard.get_substring_filter/original