private void setNumberOfReplicas(ESConnection conn, String name, int replicas) { JObject obj = new JObject(); obj.WriteToken("settings.number_of_replicas", replicas); conn.Put(name + "/_settings", obj).ThrowIfError(); }
public override void Add(PipelineContext ctx) { if ((ctx.ImportFlags & _ImportFlags.TraceValues) != 0) { ctx.DebugLog.Log("Add: accumulator.Count={0}", accumulator.Count); } if (accumulator.Count == 0) { return; } Connection.Put(Doctype.UrlPart, accumulator).ThrowIfError(); }