def copy_index(src_index, dst_index, scope = nil, request_options = {})
      request = { 'operation' => 'copy', 'destination' => dst_index }
      request['scope'] = scope unless scope.nil?
      post(Protocol.index_operation_uri(src_index), request.to_json, :write, request_options)
    end
def copy_index(src_index, dst_index, scope = nil, request_options = {})
      request = { 'operation' => 'copy', 'destination' => dst_index }
      request['scope'] = scope unless scope.nil?
      post(Protocol.index_operation_uri(src_index), request.to_json, :write, request_options)
    end
Copy an existing index.

 @param src_index the name of index to copy.
 @param dst_index the new index name that will contains a copy of srcIndexName (destination will be overriten if it already exist).
 @param scope the optional list of scopes to copy (all if not specified).
 @param request_options contains extra parameters to send with your query