1
-
1
+ [[doc-values]]
2
2
=== Doc Values
3
3
4
4
The default data structure for field data is called _paged-bytes_, and it is
@@ -11,13 +11,13 @@ There is an alternative format known as _doc values_. Doc values are special
11
11
data structures which are built at index-time and written to disk. They are then
12
12
loaded to memory and accessed in place of the standard paged-bytes implementation.
13
13
14
- The main benefit of doc values is lower memory footprint. With the default
14
+ The main benefit of doc values is lower memory footprint. With the default
15
15
paged-bytes format, if you attempt to load more field data to memory than available
16
16
heap space...you'll get an OutOfMemoryException.
17
17
18
- By contrast, doc values can stream from disk efficiently and do not require
18
+ By contrast, doc values can stream from disk efficiently and do not require
19
19
processing at query-time (unlike paged-bytes, which must be generated). This
20
- allows you to work with field data that would normally be too large to fit in
20
+ allows you to work with field data that would normally be too large to fit in
21
21
memory.
22
22
23
23
The trade-off is a larger index size and potentially slower field data access.
@@ -35,7 +35,7 @@ tradeoff for truly massive data.
35
35
==== Enabling Doc Values
36
36
37
37
Doc values can be enabled for numeric fields, geopoints and `not_analyzed` string fields.
38
- They do not currently work with `analyzed` string fields. Doc values are
38
+ They do not currently work with `analyzed` string fields. Doc values are
39
39
enabled in the mapping of a particular field, which means that some fields can
40
40
use doc values while the rest use the default paged-bytes.
41
41
@@ -56,7 +56,7 @@ PUT /fielddata/filtering/_mapping
56
56
}
57
57
}
58
58
----
59
- <1> Doc values can only be enabled on `not_analyzed` string fields, numerics and
59
+ <1> Doc values can only be enabled on `not_analyzed` string fields, numerics and
60
60
geopoints
61
61
<2> Doc values are enabled by setting the `"fielddata.format"` parameter to
62
62
`doc_values`
0 commit comments