Make the indexerThread return a value.