Fixed incorrect variables, and implement simple fuzzy search for ES