WARNING: Version 6.1 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Doc value Fields
editDoc value Fields
editAllows to return the doc value representation of a field for each hit, for example:
GET /_search { "query" : { "match_all": {} }, "docvalue_fields" : ["test1", "test2"] }
Doc value fields can work on fields that are not stored.
Note that if the fields parameter specifies fields without docvalues it will try to load the value from the fielddata cache causing the terms for that field to be loaded to memory (cached), which will result in more memory consumption.