title: Why is docs.count=0 in Elasticsearch, when uploading a Json-file?
body: <p>I've got a JSON-file (test2.json), with data that looks like this:</p>
  
  <pre><code>{"index":{"_index":"wiki","_type":"data","_id":1},
   "mappings": {
    "doc": {
     "properties": {
      "curr": {"type": "text"},
      "n": {"type": "integer"},
      "prev": {"type": "text"},
      "type": {"type": "text"}
     }
    }
   }
  }
  {
      "results": [
      {
          "curr": "Ohio_\"Heartbeat_Bill\"",
          "n": 43,
          "prev": "other-external",
          "type": "external"
      }
      {
          "curr": "Ohio_\"Heartbeat_Bill\"",
          "n": 1569,
          "prev": "other-search",
          "type": "external"
      }
      {
          "curr": "Ohio_\"Heartbeat_Bill\"",
          "n": 11,
          "prev": "other-internal",
          "type": "external"
      }
      ]
  }
  </code></pre>
  
  <p>I get this data into Elasticsearch by using this command:</p>
  
  <blockquote>
    <p>curl elastic:elastic@localhost:9200/wiki -H "Content-type: application/json" -X PUT -d @test2.json</p>
  </blockquote>
  
  <p>When I open up the Management in Kibana, I cannot find any index named "wiki", so I googled and someone said that it could be due to Elasticsearch not having any documents in it.</p>
  
  <p>So I looked up at the Management-Elasticsearch section and truly "docs count" is zero.</p>
  
  <p><a href="https://i.stack.imgur.com/Sai8h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Sai8h.png" alt="docs.count=0"></a></p>
  
  <p>The question is now: how do I get Elasticsearch/Kibana to read my data from the file correctly? The mapping is accepted, as well as the index.
  I just don't understand, why the "results" are not seen as a document.. Do I have to have another structure in my file?</p>
  
  <p>Any help is appreciated!
  Thank you in forward.</p>