/// <summary> /// Add new int values to update attribute values stored in Sphinx index by document IDs. /// </summary> /// <param name="name">Attribute name</param> /// <param name="values">Document id and override values map to override</param> /// <returns>New object</returns> public AttributeUpdateInt32 Add(string name, IDictionary <long, int> values) { AttributeUpdateInt32 item = new AttributeUpdateInt32(name, values); Add(item); return(item); }
/// <summary> /// Add new int value to update attribute value stored in Sphinx index by document ID. /// </summary> /// <param name="name">Attribute name</param> /// <param name="id">Document ID</param> /// <param name="value">New value</param> /// <returns>New object</returns> public AttributeUpdateInt32 Add(string name, long id, int value) { Dictionary <long, int> dict = new Dictionary <long, int>(); dict.Add(id, value); AttributeUpdateInt32 item = new AttributeUpdateInt32(name, dict); Add(item); return(item); }