File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Tests/Nest.Tests.Integration/Mapping Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -300,6 +300,8 @@ private string GetElasticsearchType(FieldType? fieldType)
300300 return FieldType . Date ;
301301 case "Boolean" :
302302 return FieldType . Boolean ;
303+ case "Guid" :
304+ return FieldType . String ;
303305 }
304306 }
305307 else
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ public class MapFromAttributeTests : IntegrationTests
1414 {
1515 class MapFromAttributeObject
1616 {
17+ public Guid Id { get ; set ; }
1718 public string Name { get ; set ; }
1819 [ ElasticProperty ( Type = FieldType . Nested , IncludeInParent = true ) ]
1920 public List < NestedObject > NestedObjects { get ; set ; }
@@ -36,6 +37,8 @@ public void InlcudeInParent()
3637 var typeMapping = this . Client . GetMapping < MapFromAttributeObject > ( i => i . Type ( "mapfromattributeobject" ) ) ;
3738 typeMapping . Should ( ) . NotBeNull ( ) ;
3839
40+ typeMapping . Mapping . Properties [ "id" ] . Type . Name . Should ( ) . Be ( "string" ) ;
41+
3942 typeMapping . Mapping . Properties [ "nestedObjects" ] . Type . Name . Should ( ) . Be ( "nested" ) ;
4043 typeMapping . Mapping . Properties [ "nestedObjectsDontIncludeInParent" ] . Type . Name . Should ( ) . Be ( "nested" ) ;
4144 var nestedObject = typeMapping . Mapping . Properties [ "nestedObjects" ] as NestedObjectMapping ;
You can’t perform that action at this time.
0 commit comments