Beispiel #1
0
        public void DeleteAsync <T>(IEnumerable <T> objects, string index, SimpleBulkParameters bulkParameters, string type, Action <ConnectionStatus> continuation) where T : class
        {
            var json = this.GenerateBulkDeleteCommand(@objects, index, type);
            var path = this.AppendSimpleParametersToPath("_bulk", bulkParameters);

            this.Connection.Post(path, json, continuation);
        }
Beispiel #2
0
        public void DeleteAsync <T>(IEnumerable <BulkParameters <T> > objects, SimpleBulkParameters bulkParameters) where T : class
        {
            var json = this.GenerateBulkDeleteCommand(@objects);
            var path = this.AppendSimpleParametersToPath("_bulk", bulkParameters);

            this.Connection.Post(path, json, null);
        }
Beispiel #3
0
        public void IndexAsync <T>(IEnumerable <BulkParameters <T> > objects, SimpleBulkParameters bulkParameters, Action <ConnectionStatus> continuation) where T : class
        {
            var json = this.GenerateBulkIndexCommand(@objects);
            var path = this.AppendSimpleParametersToPath("_bulk", bulkParameters);

            this.Connection.Post(path, json, continuation);
        }
Beispiel #4
0
        public ConnectionStatus Delete <T>(IEnumerable <T> objects, string index, SimpleBulkParameters bulkParameters) where T : class
        {
            var json = this.GenerateBulkDeleteCommand(@objects, index);
            var path = this.AppendSimpleParametersToPath("_bulk", bulkParameters);

            return(this.Connection.PostSync(path, json));
        }
Beispiel #5
0
        public ConnectionStatus Index <T>(IEnumerable <BulkParameters <T> > objects, SimpleBulkParameters bulkParameters) where T : class
        {
            var json = this.GenerateBulkIndexCommand(@objects);
            var path = this.AppendSimpleParametersToPath("_bulk", bulkParameters);

            return(this.Connection.PostSync(path, json));
        }