title: Elasticsearch indexing not working and error message: node null not part of the cluster Cluster [elasticsearch], ignoring
body: <p>I just downloaded the elastic search distribution and ran it.</p>
  
  <pre><code>curl 'localhost:9200'
  
  {
     "status" : 200,
     "name" : "cbs",
     "cluster_name" : "elasticsearch",
     "version" : {
     "number" : "1.4.1",
     "build_hash" : "89d3241d670db65f994242c8e8383b169779e2d4",
     "build_timestamp" : "2014-11-26T15:49:29Z",
     "build_snapshot" : false,
     "lucene_version" : "4.10.2"
      },
    "tagline" : "You Know, for Search"
  }
  </code></pre>
  
  <p>And I am trying to access it using spring-data.
  Added the following lines in application-context (as per spring data documentation) with xml namespace:</p>
  
  <pre><code>&lt;elasticsearch:repositories base-package="com.cbs" /&gt;
  &lt;elasticsearch:transport-client id="client" cluster-nodes="127.0.0.1:9300" cluster-name="elasticsearch" /&gt;
  &lt;bean name="elasticsearchTemplate" class="org.springframework.data.elasticsearch.core.ElasticsearchTemplate"&gt;
      &lt;constructor-arg name="client" ref="client" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>Here is the entity and repository code:</p>
  
  <pre><code>@org.springframework.data.elasticsearch.annotations.Document(indexName = "product", type = "product", shards = 1, replicas = 0, indexStoreType = "memory", refreshInterval = "-1")
  public class Product {
      @Id
      private String id;    
      private String name;
  }
  
  
  @Repository
  public class ProductSearchDaoImpl implements IProductSearchDao {
  @Autowired
  private ElasticsearchOperations elasticsearchOperations;
  
  @Override
  public void index(Product product) {
      elasticsearchOperations.createIndex(Product.class);
      elasticsearchOperations.putMapping(Product.class);
      IndexQuery indexQuery = new IndexQueryBuilder().withId(product.getId()).withObject(product).build();
      elasticsearchOperations.index(indexQuery);
      elasticsearchOperations.refresh(Product.class, true);
  }
  }
  </code></pre>
  
  <p>Now when I run the test case to index the product, I am getting a consistent warning message (every 2 seconds or so) as </p>
  
  <pre><code>[Neuronne] node null not part of the cluster Cluster [elasticsearch], ignoring...
  [Neuronne] node null not part of the cluster Cluster [elasticsearch], ignoring...
  </code></pre>
  
  <p>And the product is not getting indexed (even the index is not created)</p>
  
  <pre><code>curl 'localhost:9200/_cat/indices?v'
  health status index    pri rep docs.count docs.deleted store.size pri.store.size 
  </code></pre>
  
  <p>Can anyone help me out with this?</p>