Skip to main content
Locate a document in search results

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Query Parameters

photoSize
enum<string>
default:nano

Rendition in which the profile pictures of the users referred to by the results are returned.

Available options:
nano,
small,
medium,
big
Example:

"nano"

Body

application/json
documentId
string
required

Identifier of the document to find in the result set.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]+$
Example:

"a0d01c9d-f72f-4c57-af11-e26bda19cc59"

query
object
required

The search the document is being located in, in the same shape POST /search takes. It decides both the result set the document is looked for in and what the page that comes back contains, and its from is worked out here, so whatever is sent for it has no effect.

Response

Returns the page of results containing the document, along with where that page begins.

aggs
object

Results of the aggregations the search carried, answered as the search engine produced them and describing the whole matched set rather than this page. Absent where the search asked for none.

from
integer

Zero-based position of the first returned result within the whole result set. It is what was asked for, except where the offset was worked out by the search itself.

Example:

0

groups
object

The groups the returned documents refer to, gathered here the same way as the users. Empty where no result involves a group.

results
object[]

The page of matched documents, in the order the search produced them.

scrollId
string

Cursor to send with the next request to continue the walk through the results. Present only while a scroll context is in use, and to be closed with DELETE /search/scroll once the walk is over.

Example:

"8kZtoG59p8qvO4a5LepHCNaR7LGH7BKFIAU1rd5DAEBPi4pxxIA6NVOAd0GXKB1m"

total
integer

Number of documents the search matched in total, which is what to page through - not the number of results in this answer.

Example:

137

users
object

The users the returned documents refer to, as their owners, participants or recipients, gathered here so that a listing does not have to resolve each of them on its own. Only those the caller may see are included, so a document may name someone who is missing from here.