Added input filtering for index-search.