migrate hash index to new index api SERVER-8791 SERVER-9164