buildIndex interface