Added index API support in collection copy