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.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 -
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.
-