simplified interface for buildIndex a bit