Add createIndex support

Add CreateIndex func in the way similar to DeleteIndex