title: How to fix cluster health yellow with Elastic Search
body: <p>I have setup on server, with MongoDb and ElasticSearch. Using <a href="https://github.com/richardwilly98/elasticsearch-river-mongodb">https://github.com/richardwilly98/elasticsearch-river-mongodb</a> I have connected ElasticSearch and MongoDb together.</p>
  
  <p>I create a new index using:</p>
  
  <pre><code>curl -XPUT 'http://127.0.0.1:9200/_river/mongodb/_meta' -d '{ 
          "type": "mongodb", 
          "mongodb": { 
          "db": "my_database", 
          "collection": "my_collection"
      }, 
          "index": {
          "name": "mainindex", 
          "type": "string",
          "bulk": {
              "concurrent_requests": 1
          }
      }
  }'
  </code></pre>
  
  <p>Once the command is executed and I go to <a href="http://x.x.x.x:9200/_plugin/head/">http://x.x.x.x:9200/_plugin/head/</a> I see the message: cluster health: yellow (1, 6).</p>
  
  <p><img src="https://i.stack.imgur.com/bfrB7.jpg" alt="cluster health: yellow (1, 6)"></p>
  
  <p><img src="https://i.stack.imgur.com/mVxzG.jpg" alt="enter image description here"></p>