Add createIndex support

Resending PR after rebase.

=====

Add CreateIndex func in the way similar to DeleteIndex