Skip to content

Commit 474f72d

Browse files
committed
Update documentation
Include details about Strict and Verbatim queries
1 parent cfe4bc6 commit 474f72d

File tree

6 files changed

+454
-307
lines changed

6 files changed

+454
-307
lines changed

docs/client-concepts/connection-pooling/sniffing/role-detection.asciidoc

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,38 @@ var audit = new Auditor(() => Framework.Cluster
4040
await audit.TraceStartup();
4141
----
4242

43+
[source,csharp]
44+
----
45+
var audit = new Auditor(() => Framework.Cluster
46+
.Nodes(10)
47+
.Sniff(s => s.SucceedAlways()
48+
.Succeeds(Always, Framework.Cluster.Nodes(8).StoresNoData(9200, 9201, 9202).HttpDisabled(9201))
49+
)
50+
.SniffingConnectionPool()
51+
.AllDefaults()
52+
)
53+
{
54+
AssertPoolBeforeCall = (pool) =>
55+
{
56+
pool.Should().NotBeNull();
57+
pool.Nodes.Should().HaveCount(10);
58+
pool.Nodes.Where(n => n.HoldsData).Should().HaveCount(10);
59+
pool.Nodes.Where(n => n.HttpEnabled).Should().HaveCount(10);
60+
pool.Nodes.Should().OnlyContain(n => n.Uri.Host == "localhost");
61+
},
62+
63+
AssertPoolAfterCall = (pool) =>
64+
{
65+
pool.Should().NotBeNull();
66+
pool.Nodes.Should().HaveCount(7, "we filtered the node that stores no data");
67+
pool.Nodes.Should().NotContain(n=>n.Uri.Port == 9201);
68+
pool.Nodes.Where(n => n.HoldsData).Should().HaveCount(5);
69+
}
70+
};
71+
72+
await audit.TraceStartup();
73+
----
74+
4375
[source,csharp]
4476
----
4577
var audit = new Auditor(() => Framework.Cluster

docs/client-concepts/high-level/inference/indices-paths.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
[[indices-paths]]
88
== Indices paths
99

10-
Some APIs in Elasticsearch take one or many index name or a special `_all` marker to send the request to all the indices
11-
In nest this is encoded using `Indices`.
10+
Some APIs in Elasticsearch take one or many index names or a special `_all` marker to send the request to all the indices.
11+
In NEST this is encoded using `Indices`.
1212

1313
=== Implicit Conversion
1414

0 commit comments

Comments
 (0)