/// <summary> /// Inserts single document into Clusterpoint Server storage. /// </summary> /// <param name="id">Document ID.</param> /// <param name="document">Document as CPS_SimpleXML or XmlElement object.</param> /// <returns>List of document IDs inserted.</returns> public List<string> insertSingle(string id, Object document) { CPS_InsertRequest request = new CPS_InsertRequest(id, document); this.p_lastResponse = this.p_connection.sendRequest(request); return ((CPS_ModifyResponse)this.p_lastResponse).getModifiedIds(); }
/// <summary> /// Inserts multiple documents into Clusterpoint Server storage. /// </summary> /// <param name="documents">Documents as Dictionary<string, CPS_SimpleXML> or Dictionary<string, XmlElement> where key is document ID.</param> /// <returns>List of document IDs inserted.</returns> public List<string> insertMultiple(Object documents) { CPS_InsertRequest request = new CPS_InsertRequest(documents); this.p_lastResponse = this.p_connection.sendRequest(request); return ((CPS_ModifyResponse)this.p_lastResponse).getModifiedIds(); }