Skip to content

Commit caf1769

Browse files
committed
Don't make it sound like large docs are cheap if the _source is not requested.
1 parent c95f3dd commit caf1769

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/reference/how-to/general.asciidoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ that. You might decide to increase that particular setting, but Lucene still
2121
has a limit at about 2GB.
2222

2323
But even without considering hard limits, large documents are usually not
24-
practical. Large documents put more stress on network, disk and on memory usage
25-
since their content will need to be retrieved by the `_search` API to build
26-
the response. Inverting this document can use an amount of memory that is a
24+
practical. Large documents put more stress on network, memory usage and disk,
25+
even for search requests that do not request the `_source` since Elasticsearch
26+
needs to fetch the `_id` of the document in all cases, and the cost of getting
27+
this field is bigger for large documents due to how the filesystem cache works.
28+
Inverting this document can use an amount of memory that is a
2729
multiplier of the original size of the document. Proximity search (phrase
2830
queries for instance) and <<search-request-highlighting,highlighting>> also
2931
become more expensive since their cost directly depends on the size of the

0 commit comments

Comments
 (0)