elastic / elastic-transport-js

Transport classes and utilities shared among Node.js Elastic client libraries
Apache License 2.0
4 stars 24 forks source link

Return Elasticsearch warnings only in res.warnings #79

Closed pquentin closed 6 months ago

pquentin commented 7 months ago

Closes #33

I was not able to test this on a real cluster as:

But a way to test this is to run a ... 7.17 cluster and close an index:

curl -v -X PUT http://localhost:9200/test-index/
curl -v -X POST http://localhost:9200/test-index/_close

Or to run a 8.12 cluster and use GET _cat/aliases?local=true (https://github.com/elastic/elasticsearch/issues/101815).