finishes building all indexes.