ES2.1 date field ,about store


(Sshling) #1

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
]

(Mark Walkom) #2

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


(Sshling) #3

ok , with poor english ,I'm sorry ,


(David Pilato) #4

No problem. What is your favorite language?


(Sshling) #5

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


(David Pilato) #6

I meant spoken language.


(Sshling) #7

From China , Chinese


(David Pilato) #8

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


(system) #9

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