Fixed typeahead not showing duplicates; Fixed indexing script.