File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
src/Nest/Domain/Mapping/SpecialFields Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ public interface ITimestampFieldMapping : ISpecialField
2222
2323 [ JsonProperty ( "ignore_missing" ) ]
2424 bool ? IgnoreMissing { get ; set ; }
25+
26+ [ JsonProperty ( "store" ) ]
27+ bool Store { get ; set ; }
2528 }
2629
2730 public class TimestampFieldMapping : ITimestampFieldMapping
@@ -33,6 +36,7 @@ public class TimestampFieldMapping : ITimestampFieldMapping
3336 public string Format { get ; set ; }
3437 public string Default { get ; set ; }
3538 public bool ? IgnoreMissing { get ; set ; }
39+ public bool Store { get ; set ; }
3640 }
3741
3842
@@ -47,12 +51,20 @@ public class TimestampFieldMappingDescriptor<T> : ITimestampFieldMapping
4751 string ITimestampFieldMapping . Format { get ; set ; }
4852 string ITimestampFieldMapping . Default { get ; set ; }
4953 bool ? ITimestampFieldMapping . IgnoreMissing { get ; set ; }
54+ bool ITimestampFieldMapping . Store { get ; set ; }
5055
5156 public TimestampFieldMappingDescriptor < T > Enabled ( bool enabled = true )
5257 {
5358 Self . Enabled = enabled ;
5459 return this ;
5560 }
61+
62+ public TimestampFieldMappingDescriptor < T > Store ( bool store = false )
63+ {
64+ Self . Store = store ;
65+ return this ;
66+ }
67+
5668 public TimestampFieldMappingDescriptor < T > Path ( string path )
5769 {
5870 Self . Path = path ;
@@ -85,4 +97,4 @@ public TimestampFieldMappingDescriptor<T> IgnoreMissing(bool ignoreMissing = tru
8597
8698
8799 }
88- }
100+ }
You can’t perform that action at this time.
0 commit comments