Search algorithm and autocomplete enhancements