title: nodeBuilder() is removed by Elasticsearch, but still spring-data-elasticsearch documentation contains configuration which uses nodeBuilder()
body: <p>I was following the <a href="https://docs.spring.io/spring-data/elasticsearch/docs/current/reference/html/#elasticsearch.annotation" rel="nofollow noreferrer">Spring-Data-Elasticseach documentaion</a> and was following the configuration as mentioned in the above link.</p>
  
  <pre><code>@Configuration
  @EnableElasticsearchRepositories(basePackages = "org/springframework/data/elasticsearch/repositories")
  static class Config {
  
      @Bean
      public ElasticsearchOperations elasticsearchTemplate() {
          return new ElasticsearchTemplate(nodeBuilder().local(true).node().client());
      }
  }
  </code></pre>
  
  <p>Since import for <code>nodeBuilder()</code> is not mentioned in the documentation I assumed it from <code>org.elasticsearch.node.NodeBuilder.*</code> as mentioned in <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api/2.0/node-client.html" rel="nofollow noreferrer">elasticsearch Java API</a>.</p>
  
  <p>But in the later releases, the API got changed and <code>NodeBuilder</code> no longer exists. So why/how the spring documentation still using the <code>NodeBuilder</code>?</p>
  
  <p>If that's an issue with the documentation, what's the right configuration?</p>
  
  <p>The dependencies I am using </p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-data-elasticsearch&lt;/artifactId&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>with the boot version <code>2.1.1.RELEASE</code></p>