Skip to content

Commit 158b195

Browse files
committed
ignore_above shoud be mapped as int not string on stringmapping ty @gmarz
1 parent b1d4bcb commit 158b195

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Nest/Domain/Mapping/Descriptors/StringMappingDescriptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public StringMappingDescriptor<T> Norms(NormsMapping normsMapping)
8888
this._Mapping.Norms = normsMapping;
8989
return this;
9090
}
91-
public StringMappingDescriptor<T> IgnoreAbove(string ignoreAbove)
91+
public StringMappingDescriptor<T> IgnoreAbove(int? ignoreAbove)
9292
{
9393
this._Mapping.IgnoreAbove = ignoreAbove;
9494
return this;

src/Nest/Domain/Mapping/Types/StringMapping.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class StringMapping : IElasticType, IElasticCoreType
5656
public string IndexAnalyzer { get; set; }
5757

5858
[JsonProperty("ignore_above")]
59-
public string IgnoreAbove { get; set; }
59+
public int? IgnoreAbove { get; set; }
6060

6161
[JsonProperty("search_analyzer")]
6262
public string SearchAnalyzer { get; set; }

0 commit comments

Comments
 (0)