Class SemanticTextProperty.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SemanticTextProperty.Builder>
co.elastic.clients.elasticsearch._types.mapping.SemanticTextProperty.Builder
- All Implemented Interfaces:
WithJson<SemanticTextProperty.Builder>,ObjectBuilder<SemanticTextProperty>
- Enclosing class:
- SemanticTextProperty
public static class SemanticTextProperty.Builder
extends WithJsonObjectBuilderBase<SemanticTextProperty.Builder>
implements ObjectBuilder<SemanticTextProperty>
Builder for
SemanticTextProperty.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSemanticTextProperty.chunkingSettings(ChunkingSettings value) Settings for chunking text into smaller passages.Settings for chunking text into smaller passages.Settings for index_options that override any defaults used by semantic_text, for example specific quantization settings.Settings for index_options that override any defaults used by semantic_text, for example specific quantization settings.inferenceId(String value) Inference endpoint that will be used to generate embeddings for the field.API name:metaAPI name:metasearchInferenceId(String value) Inference endpoint that will be used to generate embeddings at query time.protected SemanticTextProperty.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
meta
API name:metaAdds all entries of
maptometa. -
meta
API name:metaAdds an entry to
meta. -
inferenceId
Inference endpoint that will be used to generate embeddings for the field. This parameter cannot be updated. Use the Create inference API to create the endpoint. Ifsearch_inference_idis specified, the inference endpoint will only be used at index time.API name:
inference_id -
searchInferenceId
Inference endpoint that will be used to generate embeddings at query time. You can update this parameter by using the Update mapping API. Use the Create inference API to create the endpoint. If not specified, the inference endpoint defined by inference_id will be used at both index and query time.API name:
search_inference_id -
indexOptions
Settings for index_options that override any defaults used by semantic_text, for example specific quantization settings.API name:
index_options -
indexOptions
public final SemanticTextProperty.Builder indexOptions(Function<SemanticTextIndexOptions.Builder, ObjectBuilder<SemanticTextIndexOptions>> fn) Settings for index_options that override any defaults used by semantic_text, for example specific quantization settings.API name:
index_options -
chunkingSettings
Settings for chunking text into smaller passages. If specified, these will override the chunking settings sent in the inference endpoint associated with inference_id. If chunking settings are updated, they will not be applied to existing documents until they are reindexed.API name:
chunking_settings -
chunkingSettings
public final SemanticTextProperty.Builder chunkingSettings(Function<ChunkingSettings.Builder, ObjectBuilder<ChunkingSettings>> fn) Settings for chunking text into smaller passages. If specified, these will override the chunking settings sent in the inference endpoint associated with inference_id. If chunking settings are updated, they will not be applied to existing documents until they are reindexed.API name:
chunking_settings -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<SemanticTextProperty.Builder>
-
build
Builds aSemanticTextProperty.- Specified by:
buildin interfaceObjectBuilder<SemanticTextProperty>- Throws:
NullPointerException- if some of the required fields are null.
-