Class DocumentRequest.Builder
- All Implemented Interfaces:
DocumentRequest._FinalStage,DocumentRequest.TitleStage
- Enclosing class:
DocumentRequest
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()Associated client ID — the Vectros-assigned UUID of a client in your account.Associated client ID — the Vectros-assigned UUID of a client in your account.expectedVersion(Long expectedVersion) Optimistic-concurrency token.expectedVersion(Optional<Long> expectedVersion) Optimistic-concurrency token.externalId(String externalId) Stable, caller-supplied identifier for this document.externalId(Optional<String> externalId) Stable, caller-supplied identifier for this document.ID of the folder to place this document in.ID of the folder to place this document in.from(DocumentRequest other) indexMode(DocumentRequestIndexMode indexMode) Indexing strategy for this document.indexMode(Optional<DocumentRequestIndexMode> indexMode) Indexing strategy for this document.Owning organization ID — the Vectros-assigned UUID of an organization in your account.Owning organization ID — the Vectros-assigned UUID of an organization in your account.The document's structured data, as a flat key/value object.The document's structured data, as a flat key/value object.Optional ID of a record schema to bind this document to.Optional ID of a record schema to bind this document to.If true, the raw text is retained so you can later fetch it viaGET /v1/documents/{id}/text.If true, the raw text is retained so you can later fetch it viaGET /v1/documents/{id}/text.Raw text content to ingest.Raw text content to ingest.Human-readable document titleOwning user ID — the Vectros-assigned UUID of a user in your account.Owning user ID — the Vectros-assigned UUID of a user in your account.
-
Method Details
-
from
- Specified by:
fromin interfaceDocumentRequest.TitleStage
-
title
Human-readable document title
Human-readable document title
- Specified by:
titlein interfaceDocumentRequest.TitleStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
expectedVersion
Optimistic-concurrency token. Pass the
versionyou last read (from a GET or a prior write response) to make this update conditional — it is rejected with409 VERSION_CONFLICTif the document was modified since, leaving the stored document untouched. Omit for last-write-wins (the default). Ignored on create.- Specified by:
expectedVersionin interfaceDocumentRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
expectedVersion
Optimistic-concurrency token. Pass the
versionyou last read (from a GET or a prior write response) to make this update conditional — it is rejected with409 VERSION_CONFLICTif the document was modified since, leaving the stored document untouched. Omit for last-write-wins (the default). Ignored on create.- Specified by:
expectedVersionin interfaceDocumentRequest._FinalStage
-
externalId
Stable, caller-supplied identifier for this document. Optional. Immutable after create. Unique within your account and context: posting again with the same
externalIdreturns the existing document (idempotent ingest), and it is the key other records use to reference this one. Max 256 characters.- Specified by:
externalIdin interfaceDocumentRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
externalId
Stable, caller-supplied identifier for this document. Optional. Immutable after create. Unique within your account and context: posting again with the same
externalIdreturns the existing document (idempotent ingest), and it is the key other records use to reference this one. Max 256 characters.- Specified by:
externalIdin interfaceDocumentRequest._FinalStage
-
clientId
Associated client ID — the Vectros-assigned UUID of a client in your account. Optional. With an API key, sets the document's client explicitly. With a scoped token, must match the token's identity claim (if set) or fall within its data scope.
- Specified by:
clientIdin interfaceDocumentRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
clientId
Associated client ID — the Vectros-assigned UUID of a client in your account. Optional. With an API key, sets the document's client explicitly. With a scoped token, must match the token's identity claim (if set) or fall within its data scope.
- Specified by:
clientIdin interfaceDocumentRequest._FinalStage
-
orgId
Owning organization ID — the Vectros-assigned UUID of an organization in your account. Optional. With an API key, sets the document's owning organization explicitly. With a scoped token, must match the token's identity claim (if set) or fall within its data scope.
- Specified by:
orgIdin interfaceDocumentRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
orgId
Owning organization ID — the Vectros-assigned UUID of an organization in your account. Optional. With an API key, sets the document's owning organization explicitly. With a scoped token, must match the token's identity claim (if set) or fall within its data scope.
- Specified by:
orgIdin interfaceDocumentRequest._FinalStage
-
userId
Owning user ID — the Vectros-assigned UUID of a user in your account. Optional. With an API key, sets the document's owner explicitly. With a scoped token, must match the token's identity claim (if set) or fall within its data scope.
- Specified by:
userIdin interfaceDocumentRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
userId
Owning user ID — the Vectros-assigned UUID of a user in your account. Optional. With an API key, sets the document's owner explicitly. With a scoped token, must match the token's identity claim (if set) or fall within its data scope.
- Specified by:
userIdin interfaceDocumentRequest._FinalStage
-
schemaId
Optional ID of a record schema to bind this document to. When set, the document's
payloadis validated against the schema's fields on save, and the schema's lookup fields become directly queryable (the same behavior as records). On update, omit to leave unchanged.- Specified by:
schemaIdin interfaceDocumentRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
schemaId
Optional ID of a record schema to bind this document to. When set, the document's
payloadis validated against the schema's fields on save, and the schema's lookup fields become directly queryable (the same behavior as records). On update, omit to leave unchanged.- Specified by:
schemaIdin interfaceDocumentRequest._FinalStage
-
payload
The document's structured data, as a flat key/value object. When
schemaIdis set, declared fields are validated against the schema and its lookup fields become directly queryable viaGET /v1/documents?type=&field=&value=(sensitive fields are blind-indexed); undeclared keys pass through as free-form and are searchable via thefiltersparameter onPOST /v1/search. A strict schema rejects undeclared keys. On update, the supplied object replaces the stored payload in full (it is not key-merged); omit to leave it unchanged.- Specified by:
payloadin interfaceDocumentRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
payload
The document's structured data, as a flat key/value object. When
schemaIdis set, declared fields are validated against the schema and its lookup fields become directly queryable viaGET /v1/documents?type=&field=&value=(sensitive fields are blind-indexed); undeclared keys pass through as free-form and are searchable via thefiltersparameter onPOST /v1/search. A strict schema rejects undeclared keys. On update, the supplied object replaces the stored payload in full (it is not key-merged); omit to leave it unchanged.- Specified by:
payloadin interfaceDocumentRequest._FinalStage
-
folderId
ID of the folder to place this document in. On create, omit to use your account's default root folder. On update, omit to leave unchanged — this field cannot currently be cleared once set.
- Specified by:
folderIdin interfaceDocumentRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
folderId
ID of the folder to place this document in. On create, omit to use your account's default root folder. On update, omit to leave unchanged — this field cannot currently be cleared once set.
- Specified by:
folderIdin interfaceDocumentRequest._FinalStage
-
storeText
If true, the raw text is retained so you can later fetch it via
GET /v1/documents/{id}/text. Defaults to false to minimize storage costs.- Specified by:
storeTextin interfaceDocumentRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
storeText
If true, the raw text is retained so you can later fetch it via
GET /v1/documents/{id}/text. Defaults to false to minimize storage costs.- Specified by:
storeTextin interfaceDocumentRequest._FinalStage
-
indexMode
Indexing strategy for this document.
HYBRIDruns both BM25 keyword and dense-vector semantic indexing (recommended for most use cases).SEMANTICindexes only as dense vectors — best for conceptual similarity search.TEXTindexes only with BM25 — best for exact keyword matching.NONEstores the document without search indexing (store-only / archival): it remains retrievable by id and by structured-field lookup but never appears in search results. Optional: omit to inherit the bound schema's default index mode. If neither this field nor the schema specifies one, the request is rejected. When both are set, this per-document value wins.- Specified by:
indexModein interfaceDocumentRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
indexMode
Indexing strategy for this document.
HYBRIDruns both BM25 keyword and dense-vector semantic indexing (recommended for most use cases).SEMANTICindexes only as dense vectors — best for conceptual similarity search.TEXTindexes only with BM25 — best for exact keyword matching.NONEstores the document without search indexing (store-only / archival): it remains retrievable by id and by structured-field lookup but never appears in search results. Optional: omit to inherit the bound schema's default index mode. If neither this field nor the schema specifies one, the request is rejected. When both are set, this per-document value wins.- Specified by:
indexModein interfaceDocumentRequest._FinalStage
-
text
Raw text content to ingest. Required when creating a document via the text-ingest path. On update, supply it to replace the stored text; omit it to leave the existing text unchanged.
- Specified by:
textin interfaceDocumentRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
text
Raw text content to ingest. Required when creating a document via the text-ingest path. On update, supply it to replace the stored text; omit it to leave the existing text unchanged.
- Specified by:
textin interfaceDocumentRequest._FinalStage
-
build
- Specified by:
buildin interfaceDocumentRequest._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceDocumentRequest._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceDocumentRequest._FinalStage
-