added sourceType to CreateIndex()