def split_query(query_string, minimum_part_length=3):
 query_string = force_text(query_string)
 return set((part for part in (part.strip() for part in query_string.split()) if (len(part) >= minimum_part_length)))

def split_query ( query_string , minimum_part_length = 3 ) : query_string = force_text ( query_string ) return set ( ( part for part in ( part . strip ( ) for part in query_string . split ( ) ) if ( len ( part ) >= minimum_part_length ) ) )
split a string into a set of non-empty words .