/// <summary> /// Add new float multi-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 AttributeUpdateMultiFloat Add(string name, IDictionary <long, IEnumerable <float> > values) { AttributeUpdateMultiFloat item = new AttributeUpdateMultiFloat(name, values); Add(item); return(item); }
/// <summary> /// Add new float multi-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 AttributeUpdateMultiFloat Add(string name, long id, IEnumerable <float> value) { Dictionary <long, IEnumerable <float> > dict = new Dictionary <long, IEnumerable <float> >(); dict.Add(id, value); AttributeUpdateMultiFloat item = new AttributeUpdateMultiFloat(name, dict); Add(item); return(item); }