Drop broken support for roles (#2674)

This commit is contained in:
Josh Mock
2025-03-21 14:24:45 -05:00
committed by GitHub
parent a061576809
commit e502d2f17a
2 changed files with 2 additions and 17 deletions

View File

@ -167,19 +167,11 @@ const client = new Client({
----
|`nodeFilter`
a|`function` - Filters which node not to use for a request. +
a|`function` - Takes a `Connection` and returns `true` if it can be sent a request, otherwise `false`. +
_Default:_
[source,js]
----
function defaultNodeFilter (node) {
// avoid master only nodes
if (node.roles.master === true &&
node.roles.data === false &&
node.roles.ingest === false) {
return false
}
return true
}
() => true
----
|`nodeSelector`