ES2.1 date field ,about store

field mapping :

 "time": {
        "format": "epoch_millis",
        "store": true,
        "type": "date"
  }

search query :

{
  "fields": [
    "*",
    "_source"
  ],
  "fielddata_fields": [
    "time"
  ]
}

it's reponse :

"time": [
    "1479144300000",
    1479144300000
  ]


but ,if mapping as :

 "time": {
        "format": "epoch_millis",
        "type": "date"
  }

the same search ,but response is:

"time": [
    1479144300000
]

when field is set store ,how solve it,response as not store?

I want to know ,two search result have such diff ,why?

When using kibana 4.3.3 ,config Discovery ,search the first mapping type( "store": true), it cann't resove the wrong "date type field" result:

"time": [
    "1479144300000",
    1479144300000
  ]

it's expect a result :

"time": [
    1479144300000
]

This is probably a language barrier, but your question is not clear. Do you mind restating it? :slight_smile:

ok , with poor english ,I'm sorry ,

No problem. What is your favorite language?

ths, I'm favorite Java .but kibana query using HTTP REST ,

I meant spoken language.

From China , Chinese

You can ask in Chinese in https://discuss.elastic.co/c/in-your-native-tongue I think.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.