/// <summary> /// 增量更新 /// </summary> /// <param name="id">Id</param> /// <param name="incrementModifyParams">增量参数:key-字段,value-修改的值</param> /// <returns></returns> public virtual UpdateResponse <T> IncrementModify(string id, Dictionary <string, object> incrementModifyParams) { var r = new UpdateResponse <T>(); if (incrementModifyParams == null) { return(r); } var updatePath = new DocumentPath <T>(id); r = EsClient.Update <T, object>(updatePath, u => u.Doc(incrementModifyParams).Refresh(Elasticsearch.Net.Refresh.True)); return(r); }