Merge pull request #14474 from jpountz/doc/search_body_fields_warning

Add a warning about fields vs. source filtering.
This commit is contained in:
Adrien Grand 2015-11-09 11:52:58 +01:00
commit 81767bc639
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,11 @@
[[search-request-fields]]
=== Fields
WARNING: The `fields` parameter is about fields that are explicitly marked as
stored in the mapping, which is off by default and generally not recommended.
Use <<search-request-source-filtering,source filtering>> instead to select
subsets of the original source document to be returned.
Allows to selectively load specific stored fields for each document represented
by a search hit.