Skip to content

Commit 72057a8

Browse files
committed
Support for geo_shape attribute based mapping
1 parent 8e8debb commit 72057a8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/Nest/Enums/FieldType.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ public enum FieldType
2525
[EnumMember(Value = "geo_point")]
2626
GeoPoint,
2727
/// <summary>
28+
/// Geo shape type.
29+
/// </summary>
30+
[EnumMember(Value = "geo_shape")]
31+
GeoShape,
32+
/// <summary>
2833
/// The attachment type allows to index different “attachment” type field (encoded as base64), for example, microsoft office formats, open document formats, ePub, HTML...
2934
/// </summary>
3035
[EnumMember(Value = "attachment")]

src/Nest/Resolvers/Writers/TypeMappingWriter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ private string GetElasticSearchTypeFromFieldType(FieldType? fieldType)
211211
{
212212
case FieldType.GeoPoint:
213213
return "geo_point";
214+
case FieldType.GeoShape:
215+
return "geo_shape";
214216
case FieldType.Attachment:
215217
return "attachment";
216218
case FieldType.Ip:

0 commit comments

Comments
 (0)