Browse Source

Describe what _source.includes/excludes do (#38319)

Magnus Reftel 6 years ago
parent
commit
cb8afbb865
1 changed files with 4 additions and 1 deletions
  1. 4 1
      docs/reference/search/request/source-filtering.asciidoc

+ 4 - 1
docs/reference/search/request/source-filtering.asciidoc

@@ -54,7 +54,10 @@ GET /_search
 // CONSOLE
 
 Finally, for complete control, you can specify both `includes` and `excludes`
-patterns:
+patterns. If `includes` is not empty, then only fields that match one of the
+patterns in `includes` but none of the patterns in `excludes` are provided in
+`_source`. If `includes` is empty, then all fields are provided in `_source`,
+except for those that match a pattern in `excludes`.
 
 [source,js]
 --------------------------------------------------