| 12345678910111213141516171819202122232425262728293031 | [[modules-fielddata]]=== FielddataThe field data cache is used mainly when sorting on or computing aggregationson a field. It loads all the field values to memory in order to provide fastdocument based access to those values. The field data cache can beexpensive to build for a field, so its recommended to have enough memoryto allocate it, and to keep it loaded.The amount of memory used for the fielddata cache can be controlled using `indices.fielddata.cache.size`. Note:reloading  the field data which does not fit into your cache will be expensiveand  perform poorly.`indices.fielddata.cache.size`::    The max size of the field data cache, eg `30%` of node heap space, or an    absolute value, eg `12GB`. Defaults to unbounded.  Also see    <<fielddata-circuit-breaker>>.NOTE: These are static settings which must be configured on every data node inthe cluster.[float][[fielddata-monitoring]]==== Monitoring field dataYou can monitor memory usage for field data as well as the field data circuitbreaker using<<cluster-nodes-stats,Nodes Stats API>>
 |