Spring data elasticsearch - Can't merge a non object mapping with an object mapping
<p>I have an error, while trying to run my app with entity class:</p>

<pre><code>@Document(indexName = "index", type = "event")
public class Event {

...

    @Field(type = FieldType.Date)
    private Date dateTime;

...

}
</code></pre>

<p>The error is:</p>

<pre><code>java.lang.IllegalArgumentException: Can't merge a non object mapping [dateTime] with an object mapping [dateTime]
</code></pre>

<p>Why?</p>

<p>Ok, then I comment this <code>@Field</code> annotation. So, I'm having:</p>

<pre><code>org.elasticsearch.index.mapper.MapperParsingException: object mapping for [dateTime] tried to parse field [dateTime] as object, but found a concrete value
</code></pre>

<p>when I make</p>

<pre><code>curl -XPOST -H "Content-Type:application/json" http://localhost:8080/events -d '{ "dateTime": "2008-03-01T13:00:00.345"}'
</code></pre>