Doc_values doesn't effect date field?


(Raz Lachyani) #1

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

"createDate":{
"type":"date","doc_values":true,"fielddata":{"format":"doc_values"}
}

but when I run this command:

http://my.server.com:9200/_stats/fielddata?level=indices&fields=*&pretty

I can still see the field data hold values:

"createDate" : {
"memory_size_in_bytes" : 8942084
}

Any idea why this can happen ?


(Mark Walkom) #2

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.


(system) #3