Removed hardcoding of index name in indexer