@@ -109,41 +109,54 @@ public DateHistogramFacetDescriptor<T> OnField(string field)
109
109
Self . Field = field ;
110
110
return this ;
111
111
}
112
+
112
113
public DateHistogramFacetDescriptor < T > OnField ( Expression < Func < T , object > > objectPath )
113
114
{
114
115
objectPath . ThrowIfNull ( "objectPath" ) ;
115
116
Self . Field = objectPath ;
116
117
return this ;
117
118
}
119
+
120
+ public DateHistogramFacetDescriptor < T > Interval ( string interval )
121
+ {
122
+ Self . Interval = interval ;
123
+ return this ;
124
+ }
125
+
118
126
public DateHistogramFacetDescriptor < T > Interval ( DateInterval interval )
119
127
{
120
128
var intervalString = interval . GetStringValue ( ) ;
121
129
Self . Interval = intervalString ;
122
130
return this ;
123
131
}
132
+
124
133
public DateHistogramFacetDescriptor < T > Interval ( DateInterval interval , DateRounding dateRounding )
125
134
{
126
135
var intervalString = interval . GetStringValue ( ) ;
127
136
var roundingString = dateRounding . GetStringValue ( ) ;
128
137
Self . Interval = intervalString + ":" + roundingString ;
129
138
return this ;
130
139
}
140
+
131
141
public DateHistogramFacetDescriptor < T > Factor ( int factor )
132
142
{
133
143
Self . Factor = factor ;
134
144
return this ;
135
145
}
146
+
136
147
public DateHistogramFacetDescriptor < T > Offset ( string Pre = null , string Post = null )
137
148
{
138
149
Self . PreOffset = Pre ;
139
150
Self . PostOffset = Post ;
140
151
return this ;
141
152
}
153
+
142
154
public DateHistogramFacetDescriptor < T > TimeZone ( string timeZone )
143
155
{
144
156
Self . TimeZone = timeZone ;
145
157
return this ;
146
158
}
159
+
147
160
public DateHistogramFacetDescriptor < T > TimeZones ( string Pre = null , string Post = null )
148
161
{
149
162
//elasticsearch actually sets timezone in pre_zone so reset timezone in case its set
@@ -153,42 +166,49 @@ public DateHistogramFacetDescriptor<T> TimeZones(string Pre = null, string Post
153
166
Self . PostZone = Post ;
154
167
return this ;
155
168
}
169
+
156
170
public DateHistogramFacetDescriptor < T > KeyField ( Expression < Func < T , object > > objectPath )
157
171
{
158
172
objectPath . ThrowIfNull ( "objectPath" ) ;
159
173
Self . KeyField = objectPath ;
160
174
return this ;
161
175
}
176
+
162
177
public DateHistogramFacetDescriptor < T > KeyField ( string keyField )
163
178
{
164
179
keyField . ThrowIfNull ( "keyField" ) ;
165
180
Self . KeyField = keyField ;
166
181
return this ;
167
182
}
183
+
168
184
public DateHistogramFacetDescriptor < T > KeyScript ( string keyScript )
169
185
{
170
186
keyScript . ThrowIfNull ( "keyScript" ) ;
171
187
Self . KeyScript = keyScript ;
172
188
return this ;
173
189
}
190
+
174
191
public DateHistogramFacetDescriptor < T > ValueField ( Expression < Func < T , object > > objectPath )
175
192
{
176
193
objectPath . ThrowIfNull ( "objectPath" ) ;
177
194
Self . ValueField = objectPath ;
178
195
return this ;
179
196
}
197
+
180
198
public DateHistogramFacetDescriptor < T > ValueField ( string valueField )
181
199
{
182
200
valueField . ThrowIfNull ( "valueField" ) ;
183
201
Self . ValueField = valueField ;
184
202
return this ;
185
203
}
204
+
186
205
public DateHistogramFacetDescriptor < T > ValueScript ( string valueScript )
187
206
{
188
207
valueScript . ThrowIfNull ( "valueScript" ) ;
189
208
Self . ValueScript = valueScript ;
190
209
return this ;
191
210
}
211
+
192
212
public DateHistogramFacetDescriptor < T > Params ( Func < FluentDictionary < string , object > , FluentDictionary < string , object > > paramDictionary )
193
213
{
194
214
paramDictionary . ThrowIfNull ( "paramDictionary" ) ;
0 commit comments