Skip to content

Commit 1790a09

Browse files
committed
Ensure GeoLocationFormatter returns GeoLocation type (#4026)
The ReindexApiTests were failing on a serialisation roundtrip when dealing with properties that used the GeoLocation type. This manifested due to the inclusion of GeoLocation types in the _source serialisation on commit 5492599 The GeoLocationFormatter was found to be returning a GeoCoordinate type and not a GeoLocation type.
1 parent 6f0c7b9 commit 1790a09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Nest/QueryDsl/Geo/GeoLocationFormatter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public GeoLocation Deserialize(ref JsonReader reader, IJsonFormatterResolver for
4242
reader.ReadNextBlock();
4343
}
4444

45-
return new GeoCoordinate(lat, lon);
45+
return new GeoLocation(lat, lon);
4646
}
4747

4848
public void Serialize(ref JsonWriter writer, GeoLocation value, IJsonFormatterResolver formatterResolver)

0 commit comments

Comments
 (0)