title: How to disable elasticsearch 5.0 authentication?
body: <p>I'm just start to use <em>elasticsearch</em>. Created an index with default settings (5 shards, 1 replica). I then indexed ~13G text files with the <em>attachment</em> plugin. As a result, it went very slow searching in Kibana <strong>Discover</strong>. However, searching in the console is fast:</p>
  
  <pre><code>GET /mytext/_search
  {
    "fields": [ "file.name" ],
    "query": {
      "match": {
        "file.content": "foobar"
      }
    },
    "highlight": {
      "fields": {
        "file.content": {
        }
      }
    }
  }
  </code></pre>
  
  <p>To investigate why it's so slow, I installed <em>X-Pack</em>. The guide documentation seems not comprehensive, I didn't get to the security config.</p>
  
  <p>The default install of <em>elasticsearch</em> don't have to be logged in, but it have to be logged in after installed <em>X-Pack</em> plugin. I'm confused with the security settings of elasticsearch, kibana, x-pack, do they share the user accounts whatever? After all, I get the authentication works by:</p>
  
  <pre><code>curl -XPUT -uelastic:changeme 'localhost:9200/_shield/user/elastic/_password' -d '{ "password" : "newpass1" }'
  curl -XPUT -uelastic:newpass1 'localhost:9200/_shield/user/kibana/_password' -d '{ "password" : "newpass2" }'
  </code></pre>
  
  <p>Here comes the problem. I can't login using Java client with <code>org.elasticsearch.plugin:shield</code>. It's likely the latest version of the shield dependency (2.3.3) mismatched with the elasticsearch dependency (5.0.0-alpha).</p>
  
  <p>Well, can I just disable the authentication?</p>
  
  <p>From the node config:</p>
  
  <pre><code>GET http://localhost:9200/_nodes
  
  "nodes" : {
      "v_XmZh7jQCiIMYCG2AFhJg" : {
          "transport_address" : "127.0.0.1:9300",
          "version" : "5.0.0-alpha2",
          "roles" : [ "master", "data", "ingest" ],
          ...
          "settings" : {
              "node" : {
                  "name" : "Apache Kid"
              },
              "http" : {
                  "type" : "security"
              },
              "transport" : {
                  "type" : "security",
                  "service" : {
                      "type" : "security"
                  }
              },
  ...
  </code></pre>
  
  <p>So, can I modify these settings, and the possible values are?</p>