11using System . Collections . Generic ;
2- using Newtonsoft . Json ;
3- using System ;
2+ using Newtonsoft . Json ;
3+ using System ;
44using Newtonsoft . Json . Converters ;
55
6- namespace Nest
7- {
6+ namespace Nest
7+ {
88 [ JsonObject ( MemberSerialization . OptIn ) ]
9- public class NumberMapping : MultiFieldMapping , IElasticType , IElasticCoreType
9+ public class NumberMapping : MultiFieldMapping , IElasticType , IElasticCoreType
1010 {
1111 public NumberMapping ( )
12+ : base ( "double" )
1213 {
13- Type = "double" ;
1414 }
15-
16- /// <summary>
17- /// The name of the field that will be stored in the index. Defaults to the property/field name.
18- /// </summary>
19- [ JsonProperty ( "index_name" ) ]
20- public string IndexName { get ; set ; }
21-
22- [ JsonProperty ( "store" ) ]
23- public bool ? Store { get ; set ; }
24-
25- [ JsonProperty ( "index" ) , JsonConverter ( typeof ( StringEnumConverter ) ) ]
26- public NonStringIndexOption ? Index { get ; set ; }
27-
28- [ JsonProperty ( "precision_step" ) ]
29- public int ? PrecisionStep { get ; set ; }
30-
31- [ JsonProperty ( "boost" ) ]
32- public double ? Boost { get ; set ; }
33-
34- [ JsonProperty ( "null_value" ) ]
35- public double ? NullValue { get ; set ; }
36-
15+
16+ /// <summary>
17+ /// The name of the field that will be stored in the index. Defaults to the property/field name.
18+ /// </summary>
19+ [ JsonProperty ( "index_name" ) ]
20+ public string IndexName { get ; set ; }
21+
22+ [ JsonProperty ( "store" ) ]
23+ public bool ? Store { get ; set ; }
24+
25+ [ JsonProperty ( "index" ) , JsonConverter ( typeof ( StringEnumConverter ) ) ]
26+ public NonStringIndexOption ? Index { get ; set ; }
27+
28+ [ JsonProperty ( "precision_step" ) ]
29+ public int ? PrecisionStep { get ; set ; }
30+
31+ [ JsonProperty ( "boost" ) ]
32+ public double ? Boost { get ; set ; }
33+
34+ [ JsonProperty ( "null_value" ) ]
35+ public double ? NullValue { get ; set ; }
36+
3737 [ JsonProperty ( "doc_values" ) ]
38- public bool ? DocValues { get ; set ; }
39-
38+ public bool ? DocValues { get ; set ; }
39+
4040 [ JsonProperty ( "ignore_malformed" ) ]
4141 public bool ? IgnoreMalformed { get ; set ; }
4242
43- [ JsonProperty ( "coerce" ) ]
44- public bool ? Coerce { get ; set ; }
45-
46- }
43+ [ JsonProperty ( "coerce" ) ]
44+ public bool ? Coerce { get ; set ; }
45+
46+ }
4747}
0 commit comments