Doubts in doc_values

Hi All,

I have some doubts in doc_value.

current version is elasticsearch 1.3.7, we are planned to upgrade our elasticsearch instances.
Before that we need to clear mapping conflicts, for that we are created new mapping and re indexing data.
In new mappings we are planned to enable "doc_values":true in all fields is it OK?

  1. doc_value supports all fields?
  2. Any issues with doc_values?
  3. doc_values using disk while aggregating data, how long it persist on disk? and how to manually remove that data ?

In new mappings we are planned to enable "doc_values":true in all fields is it OK?

Generally we recommended that doc_values are using in Elasticsearch 1.4.0 or later; it would be good if you could upgrade your version! (2.4 is the latest but even 1.7 would be better)

doc_value supports all fields?

No, doc_values only work on non-analyzed strings and numeric data (dates, numbers, geo points)

Any issues with doc_values?

Doc values will use more disk, since the data is written at indexing time next to the regular segment files.

doc_values using disk while aggregating data, how long it persist on disk?

The doc values themselves are written at indexing time and have the same lifetime as the index

and how to manually remove that data ?

You generally do not remove doc_value data, so it's not recommended that you do that