title: Elastic Search Bulk Import from JSON without ID
body: <p>Is there any way to import data from a JSON file into elasticSearch without having to provide ID to each document?</p>
  
  <p>I have some data in a JSON file. It contains around 1000 documents but no ID has been specified for any document. Here's how the data looks like:</p>
  
  <hr>
  
  <pre><code>{"business_id": "aasd231as", "full_address": "202 McClure 15034", "hours":{}}
  {"business_id": "123123444", "full_address": "1322 lure 34", "hours": {}}
  {"business_id": "sd231as", "full_address": "2 McCl 5034", "hours": {}}
  </code></pre>
  
  <hr>
  
  <p>It does not have <code>{"index":{"_id":"5"}}</code> before any document.
  Now I am trying to import the data into elasticsearch using the following command:</p>
  
  <pre><code>curl -XPOST localhost:9200/newindex/newtype/_bulk?pretty --data-binary @path/file.json
  </code></pre>
  
  <p>But it throws the following error:</p>
  
  <pre><code>"type" : "illegal_argument_exception",
  "reason" : "Malformed action/metadata line [1], expected START_OBJECT or END_OBJECT but found [VALUE_STRING]"
  </code></pre>
  
  <p>This is because of the absence of ID in line before each document.</p>
  
  <p>Is there any way to import the data without providing <code>{"index":{"_id":"5"}}</code> before each document.
  Any help will be highly appreciated!!</p>