Class IngestDocumentRequest.Builder
- All Implemented Interfaces:
IngestDocumentRequest._FinalStage,IngestDocumentRequest.BodyStage
- Enclosing class:
IngestDocumentRequest
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) allowClear(Boolean allowClear) Only relevant with?allowClear(Optional<Boolean> allowClear) Only relevant with?body(@NotNull DocumentRequest body) build()from(IngestDocumentRequest other) Whentrue, if a document with the sameexternalIdalready exists its content is overwritten (the submittedpayload,title, and — when supplied —textare applied and the version is bumped) instead of being returned unchanged; the immutableexternalId,schemaId,indexMode, and ownership are never changed.Whentrue, if a document with the sameexternalIdalready exists its content is overwritten (the submittedpayload,title, and — when supplied —textare applied and the version is bumped) instead of being returned unchanged; the immutableexternalId,schemaId,indexMode, and ownership are never changed.
-
Method Details
-
from
- Specified by:
fromin interfaceIngestDocumentRequest.BodyStage
-
body
- Specified by:
bodyin interfaceIngestDocumentRequest.BodyStage
-
allowClear
Only relevant with
?upsert=true, which overwrites an existing document as a full replacement. If the submitted request omits (or sends as null) a stored field that a list or lookup response returns only as an indexed projection (a large document whose payload is stored externally), the overwrite is rejected unless you setallowClear=trueto confirm that clearing those fields is intended. Use PATCH to update without clearing omitted fields. Defaults tofalse.- Specified by:
allowClearin interfaceIngestDocumentRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
allowClear
Only relevant with
?upsert=true, which overwrites an existing document as a full replacement. If the submitted request omits (or sends as null) a stored field that a list or lookup response returns only as an indexed projection (a large document whose payload is stored externally), the overwrite is rejected unless you setallowClear=trueto confirm that clearing those fields is intended. Use PATCH to update without clearing omitted fields. Defaults tofalse.- Specified by:
allowClearin interfaceIngestDocumentRequest._FinalStage
-
upsert
When
true, if a document with the sameexternalIdalready exists its content is overwritten (the submittedpayload,title, and — when supplied —textare applied and the version is bumped) instead of being returned unchanged; the immutableexternalId,schemaId,indexMode, and ownership are never changed. Defaults tofalse. Requires thedocuments:uscope in addition todocuments:c.- Specified by:
upsertin interfaceIngestDocumentRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
upsert
When
true, if a document with the sameexternalIdalready exists its content is overwritten (the submittedpayload,title, and — when supplied —textare applied and the version is bumped) instead of being returned unchanged; the immutableexternalId,schemaId,indexMode, and ownership are never changed. Defaults tofalse. Requires thedocuments:uscope in addition todocuments:c.- Specified by:
upsertin interfaceIngestDocumentRequest._FinalStage
-
build
- Specified by:
buildin interfaceIngestDocumentRequest._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceIngestDocumentRequest._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceIngestDocumentRequest._FinalStage
-