OriginChainDB
Database endpoints

Store original text

Store the original text and facet values used for highlighting and aggregation. This does not make the text searchable.

POST /v1/tenants/{tenant}/fts/{table}/{field}/doc

Save text for highlights and facetsStoring the original text does not create searchable terms.
  1. Identify the source documentUse the same ID as its indexed entry.
  2. Save text and facet valuesPreserve content for highlighting and aggregation.
  3. Index terms separatelySearch needs the separate document-indexing operation.

Before you start

Use your database bearer token.

Connection setup

Store the text and facets for the same document ID used by your index. Call Index a document separately to make that text searchable.

Path parameters

FieldTypeRequired
tenantstringRequired
tablestringRequired
fieldstringRequired

Headers

FieldTypeRequiredDescription
x-oc-db-userstringOptionalActing database user (role, grant and row-policy checks). Send with x-oc-db-key.
x-oc-db-keystringOptionalAPI key of the x-oc-db-user user.

Request body

application/json

Limits and accepted values
  • facets maps a facet name to string values, for example {"color": ["red"], "tags": ["a", "b"]}.
  • Stored text is used for highlighting. This operation does not create the terms used by search.
FieldTypeRequired
doc_idstringRequired
facetsobjectOptional
textstringRequired

Read the result

Success is 201 with an empty body. This saves original text and facet values for later highlighting or aggregation. It does not add searchable terms; index the document separately.

Response statuses

HTTP status reference
StatusWhat to do
201Created
400Correct the request before retrying.
401Check the credential and Authorization header.
402Check feature access or available credits.
403Check tenant access, roles and permissions.
409Resolve the conflict before retrying.
413Split or reduce the request body.
415Send the required Content-Type.
422Correct the values or unsupported combination.
429Honor Retry-After when present; back off.
503Honor Retry-After when present; check write outcomes.
ยฉ 2026 Silicoyn Technologies Pvt Ltd