Converts arbitrarily complicated user entered query strings to a haystack query object.