@@ -1876,7 +1876,17 @@ public ExplainRequestParameters Source(string source)
1876
1876
public ExplainRequestParameters SourceEnabled ( params string [ ] source_enabled )
1877
1877
{
1878
1878
this . _source_enabled = source_enabled ;
1879
- this . AddQueryString ( "source_enabled" , this . _source_enabled ) ;
1879
+ this . AddQueryString ( "_source" , this . _source_enabled ) ;
1880
+ return this ;
1881
+ }
1882
+
1883
+
1884
+ internal bool _enable_source { get ; set ; }
1885
+ ///<summary>True or false to return the _source field or not, or a list of fields to return</summary>
1886
+ public ExplainRequestParameters EnableSource ( bool enable_source )
1887
+ {
1888
+ this . _enable_source = enable_source ;
1889
+ this . AddQueryString ( "_source" , this . _enable_source ) ;
1880
1890
return this ;
1881
1891
}
1882
1892
@@ -1886,7 +1896,7 @@ public ExplainRequestParameters SourceEnabled(params string[] source_enabled)
1886
1896
public ExplainRequestParameters SourceExclude ( params string [ ] source_exclude )
1887
1897
{
1888
1898
this . _source_exclude = source_exclude . Select ( f=> ( object ) f ) ;
1889
- this . AddQueryString ( "source_exclude " , this . _source_exclude ) ;
1899
+ this . AddQueryString ( "_source_exclude " , this . _source_exclude ) ;
1890
1900
return this ;
1891
1901
}
1892
1902
@@ -1896,7 +1906,7 @@ public ExplainRequestParameters SourceExclude(params string[] source_exclude)
1896
1906
public ExplainRequestParameters SourceInclude ( params string [ ] source_include )
1897
1907
{
1898
1908
this . _source_include = source_include . Select ( f=> ( object ) f ) ;
1899
- this . AddQueryString ( "source_include " , this . _source_include ) ;
1909
+ this . AddQueryString ( "_source_include " , this . _source_include ) ;
1900
1910
return this ;
1901
1911
}
1902
1912
@@ -1976,7 +1986,17 @@ public GetRequestParameters Routing(string routing)
1976
1986
public GetRequestParameters SourceEnabled ( params string [ ] source_enabled )
1977
1987
{
1978
1988
this . _source_enabled = source_enabled ;
1979
- this . AddQueryString ( "source_enabled" , this . _source_enabled ) ;
1989
+ this . AddQueryString ( "_source" , this . _source_enabled ) ;
1990
+ return this ;
1991
+ }
1992
+
1993
+
1994
+ internal bool _enable_source { get ; set ; }
1995
+ ///<summary>True or false to return the _source field or not, or a list of fields to return</summary>
1996
+ public GetRequestParameters EnableSource ( bool enable_source )
1997
+ {
1998
+ this . _enable_source = enable_source ;
1999
+ this . AddQueryString ( "_source" , this . _enable_source ) ;
1980
2000
return this ;
1981
2001
}
1982
2002
@@ -1986,7 +2006,7 @@ public GetRequestParameters SourceEnabled(params string[] source_enabled)
1986
2006
public GetRequestParameters SourceExclude ( params string [ ] source_exclude )
1987
2007
{
1988
2008
this . _source_exclude = source_exclude . Select ( f=> ( object ) f ) ;
1989
- this . AddQueryString ( "source_exclude " , this . _source_exclude ) ;
2009
+ this . AddQueryString ( "_source_exclude " , this . _source_exclude ) ;
1990
2010
return this ;
1991
2011
}
1992
2012
@@ -1996,7 +2016,7 @@ public GetRequestParameters SourceExclude(params string[] source_exclude)
1996
2016
public GetRequestParameters SourceInclude ( params string [ ] source_include )
1997
2017
{
1998
2018
this . _source_include = source_include . Select ( f=> ( object ) f ) ;
1999
- this . AddQueryString ( "source_include " , this . _source_include ) ;
2019
+ this . AddQueryString ( "_source_include " , this . _source_include ) ;
2000
2020
return this ;
2001
2021
}
2002
2022
@@ -2086,7 +2106,17 @@ public SourceRequestParameters Routing(string routing)
2086
2106
public SourceRequestParameters SourceEnabled ( params string [ ] source_enabled )
2087
2107
{
2088
2108
this . _source_enabled = source_enabled ;
2089
- this . AddQueryString ( "source_enabled" , this . _source_enabled ) ;
2109
+ this . AddQueryString ( "_source" , this . _source_enabled ) ;
2110
+ return this ;
2111
+ }
2112
+
2113
+
2114
+ internal bool _enable_source { get ; set ; }
2115
+ ///<summary>True or false to return the _source field or not, or a list of fields to return</summary>
2116
+ public SourceRequestParameters EnableSource ( bool enable_source )
2117
+ {
2118
+ this . _enable_source = enable_source ;
2119
+ this . AddQueryString ( "_source" , this . _enable_source ) ;
2090
2120
return this ;
2091
2121
}
2092
2122
@@ -2096,7 +2126,7 @@ public SourceRequestParameters SourceEnabled(params string[] source_enabled)
2096
2126
public SourceRequestParameters SourceExclude ( params string [ ] source_exclude )
2097
2127
{
2098
2128
this . _source_exclude = source_exclude . Select ( f=> ( object ) f ) ;
2099
- this . AddQueryString ( "source_exclude " , this . _source_exclude ) ;
2129
+ this . AddQueryString ( "_source_exclude " , this . _source_exclude ) ;
2100
2130
return this ;
2101
2131
}
2102
2132
@@ -2106,7 +2136,7 @@ public SourceRequestParameters SourceExclude(params string[] source_exclude)
2106
2136
public SourceRequestParameters SourceInclude ( params string [ ] source_include )
2107
2137
{
2108
2138
this . _source_include = source_include . Select ( f=> ( object ) f ) ;
2109
- this . AddQueryString ( "source_include " , this . _source_include ) ;
2139
+ this . AddQueryString ( "_source_include " , this . _source_include ) ;
2110
2140
return this ;
2111
2141
}
2112
2142
@@ -4166,7 +4196,17 @@ public MultiGetRequestParameters Refresh(bool refresh)
4166
4196
public MultiGetRequestParameters SourceEnabled ( params string [ ] source_enabled )
4167
4197
{
4168
4198
this . _source_enabled = source_enabled ;
4169
- this . AddQueryString ( "source_enabled" , this . _source_enabled ) ;
4199
+ this . AddQueryString ( "_source" , this . _source_enabled ) ;
4200
+ return this ;
4201
+ }
4202
+
4203
+
4204
+ internal bool _enable_source { get ; set ; }
4205
+ ///<summary>True or false to return the _source field or not, or a list of fields to return</summary>
4206
+ public MultiGetRequestParameters EnableSource ( bool enable_source )
4207
+ {
4208
+ this . _enable_source = enable_source ;
4209
+ this . AddQueryString ( "_source" , this . _enable_source ) ;
4170
4210
return this ;
4171
4211
}
4172
4212
@@ -4176,7 +4216,7 @@ public MultiGetRequestParameters SourceEnabled(params string[] source_enabled)
4176
4216
public MultiGetRequestParameters SourceExclude ( params string [ ] source_exclude )
4177
4217
{
4178
4218
this . _source_exclude = source_exclude . Select ( f=> ( object ) f ) ;
4179
- this . AddQueryString ( "source_exclude " , this . _source_exclude ) ;
4219
+ this . AddQueryString ( "_source_exclude " , this . _source_exclude ) ;
4180
4220
return this ;
4181
4221
}
4182
4222
@@ -4186,7 +4226,7 @@ public MultiGetRequestParameters SourceExclude(params string[] source_exclude)
4186
4226
public MultiGetRequestParameters SourceInclude ( params string [ ] source_include )
4187
4227
{
4188
4228
this . _source_include = source_include . Select ( f=> ( object ) f ) ;
4189
- this . AddQueryString ( "source_include " , this . _source_include ) ;
4229
+ this . AddQueryString ( "_source_include " , this . _source_include ) ;
4190
4230
return this ;
4191
4231
}
4192
4232
@@ -4596,7 +4636,7 @@ public NodesHotThreadsRequestParameters Threads(long threads)
4596
4636
public NodesHotThreadsRequestParameters ThreadType ( ThreadType thread_type )
4597
4637
{
4598
4638
this . _thread_type = thread_type ;
4599
- this . AddQueryString ( "thread_type " , this . _thread_type ) ;
4639
+ this . AddQueryString ( "type " , this . _thread_type ) ;
4600
4640
return this ;
4601
4641
}
4602
4642
0 commit comments