diff --git a/src/Nest/Domain/Mapping/Descriptors/GeoPointMappingDescriptor.cs b/src/Nest/Domain/Mapping/Descriptors/GeoPointMappingDescriptor.cs index 30f97239ccc..6c01484aee8 100644 --- a/src/Nest/Domain/Mapping/Descriptors/GeoPointMappingDescriptor.cs +++ b/src/Nest/Domain/Mapping/Descriptors/GeoPointMappingDescriptor.cs @@ -1,42 +1,39 @@ using System; using System.Linq.Expressions; -using Nest.Resolvers; namespace Nest { - public class GeoShapeMappingDescriptor + public class GeoPointMappingDescriptor { - internal GeoShapeMapping _Mapping = new GeoShapeMapping(); + internal GeoPointMapping _Mapping = new GeoPointMapping(); - public GeoShapeMappingDescriptor Name(string name) + public GeoPointMappingDescriptor Name(string name) { this._Mapping.Name = name; return this; } - public GeoShapeMappingDescriptor Name(Expression> objectPath) + public GeoPointMappingDescriptor Name(Expression> objectPath) { this._Mapping.Name = objectPath; return this; } - public GeoShapeMappingDescriptor Tree(GeoTree geoTree) + public GeoPointMappingDescriptor IndexLatLon(bool indexLatLon = true) { - this._Mapping.Tree = geoTree; + this._Mapping.IndexLatLon = indexLatLon; return this; } - public GeoShapeMappingDescriptor TreeLevels(int treeLevels) + public GeoPointMappingDescriptor IndexGeoHash(bool indexGeoHash = true) { - this._Mapping.TreeLevels = treeLevels; + this._Mapping.IndexGeoHash = indexGeoHash; return this; } - public GeoShapeMappingDescriptor DistanceErrorPercentage(double distanceErrorPercentage) + public GeoPointMappingDescriptor GeoHashPrecision(int geoHashPrecision) { - this._Mapping.DistanceErrorPercentage = distanceErrorPercentage; + this._Mapping.GeoHashPrecision = geoHashPrecision; return this; } - - } } \ No newline at end of file diff --git a/src/Nest/Domain/Mapping/Descriptors/GeoShapeMappingDescriptor.cs b/src/Nest/Domain/Mapping/Descriptors/GeoShapeMappingDescriptor.cs index e0a71642ac9..51087c70ade 100644 --- a/src/Nest/Domain/Mapping/Descriptors/GeoShapeMappingDescriptor.cs +++ b/src/Nest/Domain/Mapping/Descriptors/GeoShapeMappingDescriptor.cs @@ -1,43 +1,39 @@ using System; using System.Linq.Expressions; -using Nest.Resolvers; namespace Nest { - public class GeoPointMappingDescriptor + public class GeoShapeMappingDescriptor { - internal GeoPointMapping _Mapping = new GeoPointMapping(); + internal GeoShapeMapping _Mapping = new GeoShapeMapping(); - public GeoPointMappingDescriptor Name(string name) + public GeoShapeMappingDescriptor Name(string name) { this._Mapping.Name = name; return this; } - public GeoPointMappingDescriptor Name(Expression> objectPath) + public GeoShapeMappingDescriptor Name(Expression> objectPath) { this._Mapping.Name = objectPath; return this; } - - public GeoPointMappingDescriptor IndexLatLon(bool indexLatLon = true) + public GeoShapeMappingDescriptor Tree(GeoTree geoTree) { - this._Mapping.IndexLatLon = indexLatLon; + this._Mapping.Tree = geoTree; return this; } - public GeoPointMappingDescriptor IndexGeoHash(bool indexGeoHash = true) + public GeoShapeMappingDescriptor TreeLevels(int treeLevels) { - this._Mapping.IndexGeoHash = indexGeoHash; + this._Mapping.TreeLevels = treeLevels; return this; } - public GeoPointMappingDescriptor GeoHashPrecision(int geoHashPrecision) + public GeoShapeMappingDescriptor DistanceErrorPercentage(double distanceErrorPercentage) { - this._Mapping.GeoHashPrecision = geoHashPrecision; + this._Mapping.DistanceErrorPercentage = distanceErrorPercentage; return this; } - - } } \ No newline at end of file