Closed
Description
🐛 Bug Report
The implementation has a default node filter of return true
, as seen here https://github.com/elastic/elastic-transport-js/blob/main/src/Transport.ts#L770-L772
The docs state that the default filter however exclude master-only nodes, see https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/basic-config.html
I think the documentation states the correct behaviour and the actual implementation needs to be adapted - unless I am looking at the wrong part of the code.