Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:elasticsearch/elasticsearch-net …
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
Mpdreamz committed Jul 10, 2014
2 parents a485d68 + a7b9dc7 commit ff3d3d7
Show file tree
Hide file tree
Showing 19 changed files with 39 additions and 46 deletions.
4 changes: 2 additions & 2 deletions build/Elasticsearch.Net.Connection.Thrift.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Elasticsearch.Net.Connection.Thrift</id>
<version>1.0.0-ci20140604105901</version>
<version>1.0.0-rc1</version>
<title>Elasticsearch.Net.Connection.Thrift - Thrift support for Elasticsearch.Net</title>
<authors>Elasticsearch Inc. and contributors</authors>
<owners>Elasticsearch Inc.</owners>
Expand All @@ -13,7 +13,7 @@
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>An IConnection implementation that utilizes Apache Thrift to talk with elasticsearch</description>
<dependencies>
<dependency id="Elasticsearch.Net" version="1.0.0-ci20140604105901"/>
<dependency id="Elasticsearch.Net" version="1.0.0-rc1"/>
<dependency id="NetReflector" />
</dependencies>
<tags>elasticsearch elastic search lucene thrift nest</tags>
Expand Down
2 changes: 1 addition & 1 deletion build/Elasticsearch.Net.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Elasticsearch.Net</id>
<version>1.0.0-ci20140604105901</version>
<version>1.0.0-rc1</version>
<title>Elasticsearch.Net - official low level elasticsearch client</title>
<authors>Elasticsearch Inc. and contributors</authors>
<owners>Elasticsearch Inc.</owners>
Expand Down
4 changes: 2 additions & 2 deletions build/NEST.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>NEST</id>
<version>1.0.0-ci20140604105901</version>
<version>1.0.0-rc1</version>
<title>NEST - Elasticsearch Client</title>
<authors>Elasticsearch Inc. and contributors</authors>
<owners>Elasticsearch Inc.</owners>
Expand All @@ -13,7 +13,7 @@
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Elasticsearch client, strongly typed interface to Elasticsearch. Fluent request builder, mapped responses and powerful query dsl. Uses and exposes Elasticsearch.Net</description>
<dependencies>
<dependency id="Elasticsearch.Net" version="1.0.0-ci20140604105901"/>
<dependency id="Elasticsearch.Net" version="1.0.0-rc1"/>
<dependency id="Newtonsoft.Json" version="6.0.1" />
</dependencies>
<tags>elasticsearch elastic search lucene nest</tags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[assembly: AssemblyConfigurationAttribute("Release")]
[assembly: AssemblyVersionAttribute("1.0.0")]
[assembly: AssemblyFileVersionAttribute("1.0.0")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-beta1")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-rc1")]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "1.0.0";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[assembly: AssemblyConfigurationAttribute("Release")]
[assembly: AssemblyVersionAttribute("1.0.0")]
[assembly: AssemblyFileVersionAttribute("1.0.0")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-beta1")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-rc1")]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "1.0.0";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[assembly: AssemblyConfigurationAttribute("Release")]
[assembly: AssemblyVersionAttribute("1.0.0")]
[assembly: AssemblyFileVersionAttribute("1.0.0")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-beta1")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-rc1")]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "1.0.0";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[assembly: AssemblyConfigurationAttribute("Release")]
[assembly: AssemblyVersionAttribute("1.0.0")]
[assembly: AssemblyFileVersionAttribute("1.0.0")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-beta1")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-rc1")]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "1.0.0";
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch.Net/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[assembly: AssemblyConfigurationAttribute("Release")]
[assembly: AssemblyVersionAttribute("1.0.0")]
[assembly: AssemblyFileVersionAttribute("1.0.0")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-ci20140710110619")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-rc1")]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "1.0.0";
Expand Down
23 changes: 10 additions & 13 deletions src/Nest/Domain/Mapping/Descriptors/GeoPointMappingDescriptor.cs
Original file line number Diff line number Diff line change
@@ -1,42 +1,39 @@
using System;
using System.Linq.Expressions;
using Nest.Resolvers;

namespace Nest
{
public class GeoShapeMappingDescriptor<T>
public class GeoPointMappingDescriptor<T>
{
internal GeoShapeMapping _Mapping = new GeoShapeMapping();
internal GeoPointMapping _Mapping = new GeoPointMapping();

public GeoShapeMappingDescriptor<T> Name(string name)
public GeoPointMappingDescriptor<T> Name(string name)
{
this._Mapping.Name = name;
return this;
}
public GeoShapeMappingDescriptor<T> Name(Expression<Func<T, object>> objectPath)
public GeoPointMappingDescriptor<T> Name(Expression<Func<T, object>> objectPath)
{
this._Mapping.Name = objectPath;
return this;
}

public GeoShapeMappingDescriptor<T> Tree(GeoTree geoTree)
public GeoPointMappingDescriptor<T> IndexLatLon(bool indexLatLon = true)
{
this._Mapping.Tree = geoTree;
this._Mapping.IndexLatLon = indexLatLon;
return this;
}

public GeoShapeMappingDescriptor<T> TreeLevels(int treeLevels)
public GeoPointMappingDescriptor<T> IndexGeoHash(bool indexGeoHash = true)
{
this._Mapping.TreeLevels = treeLevels;
this._Mapping.IndexGeoHash = indexGeoHash;
return this;
}

public GeoShapeMappingDescriptor<T> DistanceErrorPercentage(double distanceErrorPercentage)
public GeoPointMappingDescriptor<T> GeoHashPrecision(int geoHashPrecision)
{
this._Mapping.DistanceErrorPercentage = distanceErrorPercentage;
this._Mapping.GeoHashPrecision = geoHashPrecision;
return this;
}


}
}
24 changes: 10 additions & 14 deletions src/Nest/Domain/Mapping/Descriptors/GeoShapeMappingDescriptor.cs
Original file line number Diff line number Diff line change
@@ -1,43 +1,39 @@
using System;
using System.Linq.Expressions;
using Nest.Resolvers;

namespace Nest
{
public class GeoPointMappingDescriptor<T>
public class GeoShapeMappingDescriptor<T>
{
internal GeoPointMapping _Mapping = new GeoPointMapping();
internal GeoShapeMapping _Mapping = new GeoShapeMapping();

public GeoPointMappingDescriptor<T> Name(string name)
public GeoShapeMappingDescriptor<T> Name(string name)
{
this._Mapping.Name = name;
return this;
}
public GeoPointMappingDescriptor<T> Name(Expression<Func<T, object>> objectPath)
public GeoShapeMappingDescriptor<T> Name(Expression<Func<T, object>> objectPath)
{
this._Mapping.Name = objectPath;
return this;
}


public GeoPointMappingDescriptor<T> IndexLatLon(bool indexLatLon = true)
public GeoShapeMappingDescriptor<T> Tree(GeoTree geoTree)
{
this._Mapping.IndexLatLon = indexLatLon;
this._Mapping.Tree = geoTree;
return this;
}

public GeoPointMappingDescriptor<T> IndexGeoHash(bool indexGeoHash = true)
public GeoShapeMappingDescriptor<T> TreeLevels(int treeLevels)
{
this._Mapping.IndexGeoHash = indexGeoHash;
this._Mapping.TreeLevels = treeLevels;
return this;
}

public GeoPointMappingDescriptor<T> GeoHashPrecision(int geoHashPrecision)
public GeoShapeMappingDescriptor<T> DistanceErrorPercentage(double distanceErrorPercentage)
{
this._Mapping.GeoHashPrecision = geoHashPrecision;
this._Mapping.DistanceErrorPercentage = distanceErrorPercentage;
return this;
}


}
}
2 changes: 1 addition & 1 deletion src/Nest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[assembly: AssemblyConfigurationAttribute("Release")]
[assembly: AssemblyVersionAttribute("1.0.0")]
[assembly: AssemblyFileVersionAttribute("1.0.0")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-beta1")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-rc1")]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "1.0.0";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[assembly: AssemblyConfigurationAttribute("Release")]
[assembly: AssemblyVersionAttribute("1.0.0")]
[assembly: AssemblyFileVersionAttribute("1.0.0")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-beta1")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-rc1")]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "1.0.0";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[assembly: AssemblyConfigurationAttribute("Release")]
[assembly: AssemblyVersionAttribute("1.0.0")]
[assembly: AssemblyFileVersionAttribute("1.0.0")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-beta1")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-rc1")]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "1.0.0";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[assembly: AssemblyConfigurationAttribute("Release")]
[assembly: AssemblyVersionAttribute("1.0.0")]
[assembly: AssemblyFileVersionAttribute("1.0.0")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-beta1")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-rc1")]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "1.0.0";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[assembly: AssemblyConfigurationAttribute("Release")]
[assembly: AssemblyVersionAttribute("1.0.0")]
[assembly: AssemblyFileVersionAttribute("1.0.0")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-beta1")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-rc1")]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "1.0.0";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[assembly: AssemblyConfigurationAttribute("Release")]
[assembly: AssemblyVersionAttribute("1.0.0")]
[assembly: AssemblyFileVersionAttribute("1.0.0")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-beta1")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-rc1")]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "1.0.0";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[assembly: AssemblyConfigurationAttribute("Release")]
[assembly: AssemblyVersionAttribute("1.0.0")]
[assembly: AssemblyFileVersionAttribute("1.0.0")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-beta1")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-rc1")]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "1.0.0";
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Nest.Tests.MockData/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[assembly: AssemblyConfigurationAttribute("Release")]
[assembly: AssemblyVersionAttribute("1.0.0")]
[assembly: AssemblyFileVersionAttribute("1.0.0")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-beta1")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-rc1")]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "1.0.0";
Expand Down
2 changes: 1 addition & 1 deletion src/Tests/Nest.Tests.Unit/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[assembly: AssemblyConfigurationAttribute("Release")]
[assembly: AssemblyVersionAttribute("1.0.0")]
[assembly: AssemblyFileVersionAttribute("1.0.0")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-beta1")]
[assembly: AssemblyInformationalVersionAttribute("1.0.0-rc1")]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "1.0.0";
Expand Down

0 comments on commit ff3d3d7

Please sign in to comment.