Graphon API

Search objects

POST/v1/workspaces/{workspaceId}/search

Ranks the objects or passages of one bucket against a text. Both modes match exact words and meaning together: fast fuses them, and standard then reranks the top results. Each result is an object and the places in it that matched: a page of a document, or a time range in a video or a recording. Read the object itself from the storage API with its key and versionId. Requires the viewer role. The bucket must have indexing enabled. An empty bucket returns no results and the warning index_empty. Nothing is stored.

View as Markdown

Authentication

Send your Graphon API key with every request. The value is the whole API key that Graphon showed when you created it. See Authentication.

Authorization: Bearer <GRAPHON_API_KEY>

Path parameters

The workspace id.

Request body

bucketIdstring

The bucket id. The bucket must be in the workspace and have indexing enabled.

querystring

The text to search for. It must contain text. At most 32,000 characters.

modestring (optional)

standard matches exact words and meaning together, then a reranker orders the top 48 results. fast skips the reranker. Defaults to standard. One of: fast, standard.

resultUnitstring (optional)

object: one result per object, with up to 3 locations. passage: one location per result, so an object can appear more than once. Defaults to object. One of: object, passage.

limitinteger (optional)

Results on one page, 1 to 100. Defaults to 10.

cursorstring (optional)

nextCursor from the previous page. Send it with the same body. It works for 40 minutes.

Was this page helpful?