Doc_values doesn't effect date field?

I defined date field as doc_values in the template like that:


but when I run this command:*&pretty

I can still see the field data hold values:

"createDate" : {
"memory_size_in_bytes" : 8942084

Any idea why this can happen ?

It seems you're defining doc_values twice, why is that?

Also they only apply to fields that are not analysed, which you haven't specified.