Can _type be doc_values?


(Chenryn) #1

I use term agg for compute topN of _type. Then I find that _type using fielddata memory, 500MB per node. I try to define "_type": { "doc_values": true } in template.json, even the POST return acknowledeged true, I didn't find such string in _template API result.

So, can _type field be doc_values?


(Mark Walkom) #2

You can currently, but from ES 2.0 you won't be able to - https://www.elastic.co/blog/great-mapping-refactoring#meta-fields


(Chenryn) #3

But howto check the effect? I GET the new index mapping, but can't find anything abount _type.


(system) #4