added functionality to search and indexer