From a481bbeef66072d8612827d52effcdc601e7f30c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20=C3=98sthus?= Date: Thu, 10 Jul 2014 21:29:01 +0200 Subject: [PATCH] File contents was switched - The class GeoPointMappingDescriptor was in GeoShapeMappingDescriptor - The class GeoShapeMappingDescriptor was in GeoPointMappingDescriptor --- .../Descriptors/GeoPointMappingDescriptor.cs | 23 ++++++++---------- .../Descriptors/GeoShapeMappingDescriptor.cs | 24 ++++++++----------- 2 files changed, 20 insertions(+), 27 deletions(-) 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