File tree 2 files changed +5
-0
lines changed
Tests/Nest.Tests.Integration/Mapping
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)
300
300
return FieldType . Date ;
301
301
case "Boolean" :
302
302
return FieldType . Boolean ;
303
+ case "Guid" :
304
+ return FieldType . String ;
303
305
}
304
306
}
305
307
else
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ public class MapFromAttributeTests : IntegrationTests
14
14
{
15
15
class MapFromAttributeObject
16
16
{
17
+ public Guid Id { get ; set ; }
17
18
public string Name { get ; set ; }
18
19
[ ElasticProperty ( Type = FieldType . Nested , IncludeInParent = true ) ]
19
20
public List < NestedObject > NestedObjects { get ; set ; }
@@ -36,6 +37,8 @@ public void InlcudeInParent()
36
37
var typeMapping = this . Client . GetMapping < MapFromAttributeObject > ( i => i . Type ( "mapfromattributeobject" ) ) ;
37
38
typeMapping . Should ( ) . NotBeNull ( ) ;
38
39
40
+ typeMapping . Mapping . Properties [ "id" ] . Type . Name . Should ( ) . Be ( "string" ) ;
41
+
39
42
typeMapping . Mapping . Properties [ "nestedObjects" ] . Type . Name . Should ( ) . Be ( "nested" ) ;
40
43
typeMapping . Mapping . Properties [ "nestedObjectsDontIncludeInParent" ] . Type . Name . Should ( ) . Be ( "nested" ) ;
41
44
var nestedObject = typeMapping . Mapping . Properties [ "nestedObjects" ] as NestedObjectMapping ;
You can’t perform that action at this time.
0 commit comments