TODO: reimplement the index construction.### DEBUG QueryPhrase
DEBUG: QueryPhrase. MODIFY: Index Construction