documentContent
The document​Content
stage retrieves the fields of documents you provide, optionally highlighting
occurrences of a list of search queries.
This document contains API reference only, please refer to document content retrieval chapter for examples and strategies of formatting document fields.
document​Content
Returns the fields of documents provided by the
documents
reference.
{
"type": "documentContent",
"documents": {
"type": "documents:reference",
"auto": true
},
"fields": {
"type": "contentFields:reference",
"auto": true
},
"limit": "unlimited",
"queries": {},
"start": 0
}
documents
A mandatory reference to any documents:* component or stage, providing documents for which fields should be retrieved.
fields
This property controls which fields are returned for each document and how they are formatted.
The value of this property should contain or reference one of the
content​Fields:​*
components.
limit
An optional document limit (can be used to implement paging through large document sets).
The value must be an integer >= 0 or the string
unlimited
.
queries
An optional map of named
query:​*
components, each of which should be highlighted in
the returned document fields.
See the query highlighting section in the content retrieval tutorial for more information.
start
An optional starting offset of the first document in documents (can be used to implement paging through large document sets).