Example #1
0
        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();
        }
Example #2
0
        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();
        }