@@ -20,13 +20,13 @@ public interface IDateProperty : IProperty
2020
2121 [ JsonProperty ( "precision_step" ) ]
2222 int ? PrecisionStep { get ; set ; }
23-
23+
2424 [ JsonProperty ( "ignore_malformed" ) ]
2525 bool ? IgnoreMalformed { get ; set ; }
26-
26+
2727 [ JsonProperty ( "format" ) ]
2828 string Format { get ; set ; }
29-
29+
3030 [ JsonProperty ( "numeric_resolution" ) ]
3131 NumericResolutionUnit ? NumericResolution { get ; set ; }
3232
@@ -49,7 +49,7 @@ public DateProperty() : base("date") { }
4949 public INumericFielddata Fielddata { get ; set ; }
5050 }
5151
52- public class DatePropertyDescriptor < T >
52+ public class DatePropertyDescriptor < T >
5353 : PropertyDescriptorBase < DatePropertyDescriptor < T > , IDateProperty , T > , IDateProperty
5454 where T : class
5555 {
@@ -65,7 +65,7 @@ public class DatePropertyDescriptor<T>
6565
6666 public DatePropertyDescriptor ( ) : base ( "date" ) { }
6767
68- public DatePropertyDescriptor < T > Index ( NonStringIndexOption index = NonStringIndexOption . No ) => Assign ( a => a . Index = index ) ;
68+ public DatePropertyDescriptor < T > Index ( NonStringIndexOption index = NonStringIndexOption . NotAnalyzed ) => Assign ( a => a . Index = index ) ;
6969 public DatePropertyDescriptor < T > Boost ( double boost ) => Assign ( a => a . Boost = boost ) ;
7070 public DatePropertyDescriptor < T > NullValue ( DateTime nullValue ) => Assign ( a => a . NullValue = nullValue ) ;
7171 public DatePropertyDescriptor < T > IncludeInAll ( bool includeInAll = true ) => Assign ( a => a . IncludeInAll = includeInAll ) ;
@@ -76,4 +76,4 @@ public DatePropertyDescriptor() : base("date") { }
7676 public DatePropertyDescriptor < T > Fielddata ( Func < NumericFielddataDescriptor , INumericFielddata > selector ) =>
7777 Assign ( a => a . Fielddata = selector ( new NumericFielddataDescriptor ( ) ) ) ;
7878 }
79- }
79+ }
0 commit comments