diff --git a/doc/2/api/controllers/document/export/index.md b/doc/2/api/controllers/document/export/index.md index 9726878730..b906c94844 100644 --- a/doc/2/api/controllers/document/export/index.md +++ b/doc/2/api/controllers/document/export/index.md @@ -142,7 +142,7 @@ Following arguments are available: `query`, `fields` and `fieldsName`. An empty body matches all documents in the queried collection. ::: info -Only the following fields are available in the top level of the search body: `aggregations`, `aggs`, `collapse`, `explain`, `from`, `highlight`, `query`, `search_timeout`, `size`, `sort`, `_name`, `_source`, `_source_excludes`, `_source_includes` +Only the following fields are available in the top level of the search body: `aggregations`, `aggs`, `collapse`, `explain`, `fields`, `from`, `highlight`, `query`, `search_timeout`, `size`, `sort`, `_name`, `_source`, `_source_excludes`, `_source_includes` ::: --- diff --git a/doc/2/api/controllers/document/search/index.md b/doc/2/api/controllers/document/search/index.md index 13888e6e6c..2731e34144 100644 --- a/doc/2/api/controllers/document/search/index.md +++ b/doc/2/api/controllers/document/search/index.md @@ -18,7 +18,6 @@ When using a cursor with the `scroll` option, Elasticsearch has to duplicate the It can lead to memory leaks if a scroll duration too large is provided, or if too many scroll sessions are open simultaneously. ::: - ::: info You can restrict the scroll session maximum duration under the `services.storage.maxScrollDuration` configuration key. @@ -179,7 +178,7 @@ or An empty body matches all documents in the queried collection. ::: info -Only the following fields are available in the top level of the search body: `aggregations`, `aggs`, `collapse`, `explain`, `from`, `highlight`, `query`, `search_timeout`, `size`, `sort`, `_name`, `_source`, `_source_excludes`, `_source_includes` +Only the following fields are available in the top level of the search body: `aggregations`, `aggs`, `collapse`, `explain`, `fields`, `from`, `highlight`, `query`, `search_timeout`, `size`, `sort`, `_name`, `_source`, `_source_excludes`, `_source_includes` ::: --- @@ -246,4 +245,4 @@ Returns a paginated search result set, with the following properties: "index": "" "collections": ["", ""] } -``` \ No newline at end of file +``` diff --git a/doc/2/guides/main-concepts/querying/index.md b/doc/2/guides/main-concepts/querying/index.md index 3db517c33e..a028280a75 100644 --- a/doc/2/guides/main-concepts/querying/index.md +++ b/doc/2/guides/main-concepts/querying/index.md @@ -22,6 +22,7 @@ Elasticsearch supports many keywords in a search query root level. For security - `aggs` - `collapse` - `explain` + - `fields` - `from` - `highlight` - `query` diff --git a/lib/service/storage/elasticsearch.js b/lib/service/storage/elasticsearch.js index 988fd5f63c..6dd7bab7c8 100644 --- a/lib/service/storage/elasticsearch.js +++ b/lib/service/storage/elasticsearch.js @@ -118,6 +118,7 @@ class ElasticSearch extends Service { "aggs", "collapse", "explain", + "fields", "from", "highlight", "query",