use multithread to accelerate indexer