title: Elastic bulk error: failed to parse
body: <p>I tried posting a <code>_bulk</code> post into elastic search, but it throws: </p>
  
  <pre><code>{
     "took": 1,
     "errors": true,
     "items": [
        {
           "index": {
              "_index": "quick",
              "_type": "parts",
              "_id": "ACI250-2016",
              "status": 400,
              "error": {
                 "type": "mapper_parsing_exception",
                 "reason": "failed to parse [part]",
                 "caused_by": {
                    "type": "number_format_exception",
                    "reason": "For input string: \"250-2016\""
                 }
              }
           }
        }
     ]
  }
  </code></pre>
  
  <p>And here's what I'm trying to post:</p>
  
  <pre><code>POST _bulk
  {"index":{"_index":"quick","_type":"parts","_id":"ACI250-2016"}}
  {"eMfg":"ACI","part":"250-2016"}
  </code></pre>
  
  <p>And the map is: </p>
  
  <pre><code>{
     "quick": {
        "mappings": {
           "parts": {
              "properties": {
                 "app": {
                    "type": "string"
                 },
                 "eMfg": {
                    "type": "string"
                 },
                 "fPart": {
                    "type": "long"
                 },
                 "oPart": {
                    "type": "string"
                 },
                 "ofPart": {
                    "type": "string"
                 },
                 "part": {
                    "type": "long"
                 },
                 "price": {
                    "type": "double"
                 },
                 "title": {
                    "type": "string"
                 }
              }
           }
        }
     }
  }
  </code></pre>