22// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
33// See the LICENSE file in the project root for more information
44
5- using System ;
5+ using System ;
66using System . Collections . Generic ;
77using System . Linq . Expressions ;
88using Elasticsearch . Net . Utf8Json ;
@@ -95,6 +95,9 @@ TReturnType Nested<TChild>(Func<NestedPropertyDescriptor<T, TChild>, INestedProp
9595 /// <inheritdoc cref="IShapeProperty"/>
9696 TReturnType Shape ( Func < ShapePropertyDescriptor < T > , IShapeProperty > selector ) ;
9797
98+ /// <inheritdoc cref="IPointProperty"/>
99+ TReturnType Point ( Func < PointPropertyDescriptor < T > , IPointProperty > selector ) ;
100+
98101 /// <inheritdoc cref="ICompletionProperty"/>
99102 TReturnType Completion ( Func < CompletionPropertyDescriptor < T > , ICompletionProperty > selector ) ;
100103
@@ -153,42 +156,64 @@ public PropertiesDescriptor() : base(new Properties<T>()) { }
153156
154157 public PropertiesDescriptor ( IProperties properties ) : base ( properties ?? new Properties < T > ( ) ) { }
155158
159+ /// <inheritdoc cref="IBinaryProperty"/>
156160 public PropertiesDescriptor < T > Binary ( Func < BinaryPropertyDescriptor < T > , IBinaryProperty > selector ) => SetProperty ( selector ) ;
157161
162+ /// <inheritdoc cref="IBooleanProperty"/>
158163 public PropertiesDescriptor < T > Boolean ( Func < BooleanPropertyDescriptor < T > , IBooleanProperty > selector ) => SetProperty ( selector ) ;
159164
165+ /// <inheritdoc cref="ICompletionProperty"/>
160166 public PropertiesDescriptor < T > Completion ( Func < CompletionPropertyDescriptor < T > , ICompletionProperty > selector ) => SetProperty ( selector ) ;
161167
168+ /// <inheritdoc cref="IDateProperty"/>
162169 public PropertiesDescriptor < T > Date ( Func < DatePropertyDescriptor < T > , IDateProperty > selector ) => SetProperty ( selector ) ;
163170
171+ /// <inheritdoc cref="IDateNanosProperty"/>
164172 public PropertiesDescriptor < T > DateNanos ( Func < DateNanosPropertyDescriptor < T > , IDateNanosProperty > selector ) => SetProperty ( selector ) ;
165173
174+ /// <inheritdoc cref="IDateRangeProperty"/>
166175 public PropertiesDescriptor < T > DateRange ( Func < DateRangePropertyDescriptor < T > , IDateRangeProperty > selector ) => SetProperty ( selector ) ;
167176
177+ /// <inheritdoc cref="IDoubleRangeProperty"/>
168178 public PropertiesDescriptor < T > DoubleRange ( Func < DoubleRangePropertyDescriptor < T > , IDoubleRangeProperty > selector ) => SetProperty ( selector ) ;
169179
180+ /// <inheritdoc cref="IFloatRangeProperty"/>
170181 public PropertiesDescriptor < T > FloatRange ( Func < FloatRangePropertyDescriptor < T > , IFloatRangeProperty > selector ) => SetProperty ( selector ) ;
171182
183+ /// <inheritdoc cref="IGeoPointProperty"/>
172184 public PropertiesDescriptor < T > GeoPoint ( Func < GeoPointPropertyDescriptor < T > , IGeoPointProperty > selector ) => SetProperty ( selector ) ;
173185
186+ /// <inheritdoc cref="IGeoShapeProperty"/>
174187 public PropertiesDescriptor < T > GeoShape ( Func < GeoShapePropertyDescriptor < T > , IGeoShapeProperty > selector ) => SetProperty ( selector ) ;
175188
189+ /// <inheritdoc cref="IShapeProperty"/>
176190 public PropertiesDescriptor < T > Shape ( Func < ShapePropertyDescriptor < T > , IShapeProperty > selector ) => SetProperty ( selector ) ;
177191
192+ /// <inheritdoc cref="IPointProperty"/>
193+ public PropertiesDescriptor < T > Point ( Func < PointPropertyDescriptor < T > , IPointProperty > selector ) => SetProperty ( selector ) ;
194+
195+ /// <inheritdoc cref="IIntegerRangeProperty"/>
178196 public PropertiesDescriptor < T > IntegerRange ( Func < IntegerRangePropertyDescriptor < T > , IIntegerRangeProperty > selector ) => SetProperty ( selector ) ;
179197
198+ /// <inheritdoc cref="IIpProperty"/>
180199 public PropertiesDescriptor < T > Ip ( Func < IpPropertyDescriptor < T > , IIpProperty > selector ) => SetProperty ( selector ) ;
181200
201+ /// <inheritdoc cref="IIpRangeProperty"/>
182202 public PropertiesDescriptor < T > IpRange ( Func < IpRangePropertyDescriptor < T > , IIpRangeProperty > selector ) => SetProperty ( selector ) ;
183203
204+ /// <inheritdoc cref="IJoinProperty"/>
184205 public PropertiesDescriptor < T > Join ( Func < JoinPropertyDescriptor < T > , IJoinProperty > selector ) => SetProperty ( selector ) ;
185206
207+ /// <inheritdoc cref="IKeywordProperty"/>
186208 public PropertiesDescriptor < T > Keyword ( Func < KeywordPropertyDescriptor < T > , IKeywordProperty > selector ) => SetProperty ( selector ) ;
187209
210+ /// <inheritdoc cref="ILongRangeProperty"/>
188211 public PropertiesDescriptor < T > LongRange ( Func < LongRangePropertyDescriptor < T > , ILongRangeProperty > selector ) => SetProperty ( selector ) ;
189212
213+ /// <inheritdoc cref="IMurmur3HashProperty"/>
190214 public PropertiesDescriptor < T > Murmur3Hash ( Func < Murmur3HashPropertyDescriptor < T > , IMurmur3HashProperty > selector ) => SetProperty ( selector ) ;
191215
216+ /// <inheritdoc cref="INestedProperty"/>
192217 public PropertiesDescriptor < T > Nested < TChild > ( Func < NestedPropertyDescriptor < T , TChild > , INestedProperty > selector )
193218 where TChild : class => SetProperty ( selector ) ;
194219
@@ -199,18 +224,23 @@ public PropertiesDescriptor<T> Nested<TChild>(Func<NestedPropertyDescriptor<T, T
199224 /// </summary>
200225 public PropertiesDescriptor < T > Number ( Func < NumberPropertyDescriptor < T > , INumberProperty > selector ) => SetProperty ( selector ) ;
201226
227+ /// <inheritdoc cref="IObjectProperty"/>
202228 public PropertiesDescriptor < T > Object < TChild > ( Func < ObjectTypeDescriptor < T , TChild > , IObjectProperty > selector )
203229 where TChild : class => SetProperty ( selector ) ;
204230
231+ /// <inheritdoc cref="IPercolatorProperty"/>
205232 public PropertiesDescriptor < T > Percolator ( Func < PercolatorPropertyDescriptor < T > , IPercolatorProperty > selector ) => SetProperty ( selector ) ;
206233
234+ /// <inheritdoc cref="ITextProperty"/>
207235 public PropertiesDescriptor < T > Text ( Func < TextPropertyDescriptor < T > , ITextProperty > selector ) => SetProperty ( selector ) ;
208236
209237 /// <inheritdoc cref="ISearchAsYouTypeProperty"/>
210238 public PropertiesDescriptor < T > SearchAsYouType ( Func < SearchAsYouTypePropertyDescriptor < T > , ISearchAsYouTypeProperty > selector ) => SetProperty ( selector ) ;
211239
240+ /// <inheritdoc cref="ITokenCountProperty"/>
212241 public PropertiesDescriptor < T > TokenCount ( Func < TokenCountPropertyDescriptor < T > , ITokenCountProperty > selector ) => SetProperty ( selector ) ;
213242
243+ /// <inheritdoc cref="IFieldAliasProperty"/>
214244 public PropertiesDescriptor < T > FieldAlias ( Func < FieldAliasPropertyDescriptor < T > , IFieldAliasProperty > selector ) => SetProperty ( selector ) ;
215245
216246 /// <inheritdoc cref="IRankFeatureProperty"/>
@@ -229,6 +259,9 @@ public PropertiesDescriptor<T> Object<TChild>(Func<ObjectTypeDescriptor<T, TChil
229259 public PropertiesDescriptor < T > ConstantKeyword ( Func < ConstantKeywordPropertyDescriptor < T > , IConstantKeywordProperty > selector ) =>
230260 SetProperty ( selector ) ;
231261
262+ /// <summary>
263+ /// Map a custom property.
264+ /// </summary>
232265 public PropertiesDescriptor < T > Custom ( IProperty customType ) => SetProperty ( customType ) ;
233266
234267 private PropertiesDescriptor < T > SetProperty < TDescriptor , TInterface > ( Func < TDescriptor , TInterface > selector )
0 commit comments