title: How to solve MapperParsingException: object mapping for [test] tried to parse as object, but got EOF
body: <p>In ElasicSearch i created one index "test" and mappings like below</p>
  
  <pre><code>{
    "index": {
      "_index": "test",
      "_type": "test"
    },
    "settings": {
      "index.number_of_replicas": 0,
      "index.number_of_shards": 2
    },
    "mappings": {
      "_default_": {
        "date_detection": false
      },
      "test": {
        "properties": {
          "dateModified": {
            "dynamic": "true",
            "properties": {
              "date": {
                "type": "string"
              },
              "time": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }   
  </code></pre>
  
  <p>Index is created successfully.
  I given date like </p>
  
  <pre><code>{"index":{"_index":"test","_type":"test"}}
  {"dateModified":{"date":"25/05/2015","time":"17:54 IST"}}
  </code></pre>
  
  <p>Record inserted succesfully.If i give data like below it giving error</p>
  
  <pre><code>{"index":{"_index":"test","_type":"test"}}
      {"dateModified":"25/05/2015"}
  
  org.elasticsearch.index.mapper.MapperParsingException: object mapping for [test] tried to parse as object, but got EOF, has a concrete value been provided to it?
      at org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:498)
      at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:541)
      at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:490)
      at org.elasticsearch.index.shard.service.InternalIndexShard.prepareCreate(InternalIndexShard.java:392)
      at org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:193)
      at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:511)
      at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:419)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
  </code></pre>
  
  <p>Then how to solve this problem,I read some blog and posts related to this issue but they don't given solution to this problem.</p>