From 44490e16aee94e3ffbd26a296178f232d4d990fa Mon Sep 17 00:00:00 2001 From: Spencer Alger Date: Mon, 8 Sep 2014 16:22:15 -0700 Subject: [PATCH] added a note to the config docs about the `suggestCompression` setting --- docs/configuration.asciidoc | 3 +++ test/unit/specs/transport.js | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/configuration.asciidoc b/docs/configuration.asciidoc index 0b6daad70..f55f54721 100644 --- a/docs/configuration.asciidoc +++ b/docs/configuration.asciidoc @@ -132,6 +132,9 @@ Default::: `10` Default::: `10` +`suggestCompression`[[config-suggest-compression]]:: `Boolean` -- The client should inform Elasticsearch, on each request, that it can accept compressed responses. In order for the responses to actually be compressed, you must enable `http.compression` in Elasticsearch. See http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-http.html[these docs] for additional info. + +Default::: `false` `connectionClass`[[config-connection-class]]:: `String, Constructor` -- Defines the class that will be used to create connections to store in the connection pool. If you are looking to implement additional protocols you should probably start by writing a Connection class that extends the ConnectionAbstract. diff --git a/test/unit/specs/transport.js b/test/unit/specs/transport.js index dd97821b6..93f0a1bd5 100644 --- a/test/unit/specs/transport.js +++ b/test/unit/specs/transport.js @@ -200,7 +200,6 @@ describe('Transport Class', function () { expect(hosts).to.have.length(1); expect(hosts[0]).to.have.property('suggestCompression', true); - debugger; trans = new Transport({ hosts: ['localhost:9200'] });