title: elasticsearch mapping issue: failed to parse field
body: <p>I have this mapping </p>
  
  <pre><code>PUT /mytest
  
  {
    "mappings":{
          "properties": {
            "value": { "type": "object" }
          }
    }
  }
  </code></pre>
  
  <p>When I insert this document</p>
  
  <pre><code>POST /mytest/_doc/4
  {
    "value": { "value": "test"}
  }
  </code></pre>
  
  <p>I got the following error:</p>
  
  <pre><code>{
    "error": {
      "root_cause": [
        {
          "type": "mapper_parsing_exception",
          "reason": "failed to parse field [value.value] of type [long] in document with id '4'. Preview of field's value: 'test'"
        }
      ],
      "type": "mapper_parsing_exception",
      "reason": "failed to parse field [value.value] of type [long] in document with id '4'. Preview of field's value: 'test'",
      "caused_by": {
        "type": "illegal_argument_exception",
        "reason": "For input string: \"test\""
      }
    },
    "status": 400
  }
  </code></pre>
  
  <p>I know the naming convention is bad, still, this is a valid JSON request, not sure why it doesn't allow it. </p>