Returns the documents that match the search.
The current page of documents retrieved by the search.
The properties included in the search result documents
array depend on the documentType
specified for the search. If the documentType
is set to Site/Pages
, only the default
document
properties listed below are returned.
If the documentType
is set to a specific Wix app collection (such as "Stores/Products"
), the returned search result
documents
contain additional fields. The fields included in the returned documents
are different for each documentType
.
To view the search schema for each document type, see the following articles:
The search result page size is defined by the limit()
function, can be retrieved using the pageSize
property, and
navigating through pages is done with the prev()
and
next()
functions.
When no documents match the search, the documents
array is empty.