Properly initialize the indexer connection