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); }
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); }
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); }
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)); }
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)); }