@@ -33,31 +33,14 @@ public static void Update(ElasticsearchPathInfo<DeleteByQueryRequestParameters>
3333
3434 public partial class DeleteByQueryRequest : QueryPathBase < DeleteByQueryRequestParameters > , IDeleteByQueryRequest
3535 {
36- public IQueryContainer Query { get ; set ; }
36+ public DeleteByQueryRequest ( ) { }
3737
38- /// <summary>
39- /// Sents a delete query to _all indices
40- /// </summary>
41- public DeleteByQueryRequest ( )
42- {
43- this . AllIndices = true ;
44- this . AllTypes = true ;
45- }
46-
47- public DeleteByQueryRequest ( IndexNameMarker index , TypeNameMarker type = null )
48- {
49- this . Indices = new [ ] { index } ;
50- if ( type != null )
51- this . Types = new [ ] { type } ;
52- else this . AllTypes = true ;
53- }
38+ public DeleteByQueryRequest ( IndexNameMarker index , TypeNameMarker type = null ) : base ( index , type ) { }
39+
40+ public DeleteByQueryRequest ( IEnumerable < IndexNameMarker > indices , IEnumerable < TypeNameMarker > types = null ) : base ( indices , types ) { }
41+
42+ public IQueryContainer Query { get ; set ; }
5443
55- public DeleteByQueryRequest ( IEnumerable < IndexNameMarker > indices , IEnumerable < TypeNameMarker > types = null )
56- {
57- this . Indices = indices ;
58- this . AllTypes = ! types . HasAny ( ) ;
59- this . Types = types ;
60- }
6144
6245 protected override void UpdatePathInfo ( IConnectionSettingsValues settings , ElasticsearchPathInfo < DeleteByQueryRequestParameters > pathInfo )
6346 {
@@ -68,6 +51,12 @@ protected override void UpdatePathInfo(IConnectionSettingsValues settings, Elast
6851
6952 public partial class DeleteByQueryRequest < T > : QueryPathBase < DeleteByQueryRequestParameters , T > , IDeleteByQueryRequest where T : class
7053 {
54+ public DeleteByQueryRequest ( ) { }
55+
56+ public DeleteByQueryRequest ( IndexNameMarker index , TypeNameMarker type = null ) : base ( index , type ) { }
57+
58+ public DeleteByQueryRequest ( IEnumerable < IndexNameMarker > indices , IEnumerable < TypeNameMarker > types = null ) : base ( indices , types ) { }
59+
7160 public IQueryContainer Query { get ; set ; }
7261
7362 protected override void UpdatePathInfo ( IConnectionSettingsValues settings , ElasticsearchPathInfo < DeleteByQueryRequestParameters > pathInfo )
0 commit comments