<p dir="auto"><strong>Elasticsearch version</strong>: 2.1.2  or newest</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PUT store
{
   &quot;mappings&quot;: {
      &quot;performance&quot;: {
         &quot;_source&quot;: {
            &quot;enabled&quot;: false
         },
         &quot;properties&quot;: {
            &quot;host&quot;: {
               &quot;store&quot;: true,
               &quot;type&quot;: &quot;long&quot;
            },
            &quot;time&quot;: {
               &quot;format&quot;: &quot;epoch_millis&quot;,
                &quot;store&quot;: true,
               &quot;type&quot;: &quot;date&quot;
            }
         }
      }
   }
}
POST store/performance
{
    &quot;host&quot;:1234,
    &quot;time&quot;:1479264717
}

GET  store/_search
{
  &quot;fields&quot;: [
    &quot;*&quot;,
    &quot;_source&quot;
  ],
  &quot;fielddata_fields&quot;: [
    &quot;time&quot;
  ]
}"><pre class="notranslate"><code class="notranslate">PUT store
{
   "mappings": {
      "performance": {
         "_source": {
            "enabled": false
         },
         "properties": {
            "host": {
               "store": true,
               "type": "long"
            },
            "time": {
               "format": "epoch_millis",
                "store": true,
               "type": "date"
            }
         }
      }
   }
}
POST store/performance
{
    "host":1234,
    "time":1479264717
}

GET  store/_search
{
  "fields": [
    "*",
    "_source"
  ],
  "fielddata_fields": [
    "time"
  ]
}
</code></pre></div>
<p dir="auto">query result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;time&quot;: [
    &quot;1479144300000&quot;,
    1479144300000
  ]"><pre class="notranslate"><code class="notranslate">"time": [
    "1479144300000",
    1479144300000
  ]
</code></pre></div>
<p dir="auto">But expect result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;time&quot;: [
    1479144300000
  ]"><pre class="notranslate"><code class="notranslate">"time": [
    1479144300000
  ]
</code></pre></div>
<p dir="auto">Yes, setting the store the timestamp field does not make any sense ,but most ES users do not use the<br>
ES very well ,so there is an inappropriate way to use it .However,I think that ES should consider this situation,to tolerate or compatible with this imappropriate use:</p>
<ol dir="auto">
<li>This setting can be ignored when setting the index type mappings.</li>
<li>Or to return to the search results,ignore the duplication of the results, take the value of the field from on place.</li>
</ol>
<p dir="auto">I'm from China, my English is not very good ,can understand what I mean?</p>
<p dir="auto">At least with master (did not check other branches) I see this:</p>
<p dir="auto">[WARNING] Some problems were encountered while building the effective model for org.elasticsearch:elasticsearch:jar:2.0.0-SNAPSHOT<br>
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-resources-plugin @ line 1104, column 21<br>
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-resources-plugin @ line 1367, column 21<br>
[WARNING]<br>
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.<br>
[WARNING]<br>
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.</p>