Skip to content

Commit ba869b6

Browse files
committed
Merge branch 'develop' into fix/geoshape
Conflicts: src/Nest/DSL/Filter/GeoShapeFilterDescriptor.cs src/Nest/Domain/DSL/GeoShapeVector.cs src/Nest/Nest.csproj
2 parents 4addb1e + 5afb7cb commit ba869b6

File tree

973 files changed

+1704
-3596
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

973 files changed

+1704
-3596
lines changed

build/NESTBuild.proj

Lines changed: 0 additions & 142 deletions
This file was deleted.
19.5 KB
Binary file not shown.

dep/repositories.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<repositories>
33
<repository path="..\src\CodeGeneration\CodeGeneration.LowLevelClient\packages.config" />
44
<repository path="..\src\CodeGeneration\CodeGeneration.YamlTestsRunner\packages.config" />
5-
<repository path="..\src\Connections\Elasticsearch.Net.Connection.HttpClient\packages.config" />
65
<repository path="..\src\Connections\Elasticsearch.Net.Connection.Thrift\packages.config" />
76
<repository path="..\src\Elasticsearch.Net\packages.config" />
87
<repository path="..\src\Nest\packages.config" />

new_docs/contents/elasticsearch-net/cluster-failover.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ Configuring how the registered `IConnectionPool` should behave happens on the `I
2323

2424
#### SniffOnConnectionFault()
2525
Should the connection pool resniff the cluster state everytime an operation on a node throws an exception or a faulty http status code.
26-
Defaults to false.
26+
Defaults to true.
2727

2828
#### SniffOnStartup()
29-
Should the connection pool sniff the cluster state the first time its instantiated. Defaults to false.
29+
Should the connection pool sniff the cluster state the first time its instantiated. Defaults to true.
3030

3131
#### SniffLifeSpan()
3232
When set will cause the connectionpool to resniff whenever it notices the last sniff information happened too long ago. Defaults to null.

new_docs/contents/nest/cluster/nodes-stats.markdown

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ menuitem: nodes-stats
88

99
# Nodes stats
1010

11-
var r = this._client.NodeInfo(NodesInfo.All);
12-
13-
var node = r.Nodes.First();
11+
var r = this._client.NodeInfo(NodesInfo.All);
12+
var node = r.Nodes.First();
1413

1514
You can than traverse the node info objects i.e:
1615

17-
node.Value.OS.Cpu.CacheSizeInBytes;
16+
node.Value.OS.Cpu.CacheSizeInBytes;
1817

new_docs/contents/nest/cluster/state.markdown

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,17 @@ menuitem: state
88

99
# Cluster state
1010

11-
cluster state has not yet been mapped
11+
## Get state
1212

13+
To get the basic cluster state, call:
14+
15+
var state = _client.ClusterState();
16+
17+
This returns a IClusterStateResponse that contains information about the master node, all nodes in the cluster and such.
18+
19+
## Get specific part of state
20+
21+
If you only want a specific part, i.e. only information about nodes, you can do the following:
22+
23+
var state = _client.ClusterState(c => c
24+
.Metrics(ClusterStateMetric.Nodes));

new_docs/contents/nest/indices/aliases.markdown

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,37 @@ menuitem: aliases
88

99
#Aliasing
1010

11+
Adding/removing and updating aliases are also easy to do in NEST. For more information look at the [Alias Doc](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html)
12+
1113
## Adding
1214

13-
var response = this.ConnectedClient.Alias("nest_test_data", "nest_test_data2");
15+
_client.Alias(a => a
16+
.Add(add => add
17+
.Index("myindex")
18+
.Alias("myalias")));
19+
20+
## Removing
21+
22+
_client.Alias(a => a
23+
.Remove(remove => remove
24+
.Index("myindex")
25+
.Alias("myalias")));
1426

1527

1628
## Renaming
1729

18-
var response = this.ConnectedClient.Rename("nest_test_data", "nest_test_data2", "nest_test_data3");
30+
To rename a alias, just do an Add and a Remove in the same operation. Elasticsearch will then atomically rename your alias
1931

32+
_client.Alias(a => a
33+
.Add(add => add
34+
.Index("myindex")
35+
.Alias("newalias"))
36+
.Remove(remove => remove
37+
.Index("myindex")
38+
.Alias("oldalias")));
2039

21-
## Removing
40+
## Asynchronous
41+
42+
Doing alias operations Async is simple:
2243

23-
var response = this.ConnectedClient.RemoveAlias("nest_test_data", "nest_test_data3");
44+
_client.AliasAsync(...);

0 commit comments

Comments
 (0)