Class SemanticTextProperty
java.lang.Object
co.elastic.clients.elasticsearch._types.mapping.SemanticTextProperty
- All Implemented Interfaces:
PropertyVariant,JsonpSerializable
@JsonpDeserializable
public class SemanticTextProperty
extends Object
implements PropertyVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SemanticTextProperty>Json deserializer forSemanticTextProperty -
Method Summary
Modifier and TypeMethodDescriptionProperty variant kind.final ChunkingSettingsSettings for chunking text into smaller passages.fields()Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one field for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers.final SemanticTextIndexOptionsSettings for index_options that override any defaults used by semantic_text, for example specific quantization settings.final StringInference endpoint that will be used to generate embeddings for the field.meta()API name:metastatic SemanticTextPropertyrebuild()final StringInference endpoint that will be used to generate embeddings at query time.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.mapping.PropertyVariant
_toProperty
-
Field Details
-
_DESERIALIZER
Json deserializer forSemanticTextProperty
-
-
Method Details
-
of
public static SemanticTextProperty of(Function<SemanticTextProperty.Builder, ObjectBuilder<SemanticTextProperty>> fn) -
_propertyKind
Property variant kind.- Specified by:
_propertyKindin interfacePropertyVariant
-
meta
API name: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 -
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 -
fields
Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one field for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers.API name:
fields -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
SemanticTextProperty.Builderinitialized with field values of this instance
-
setupSemanticTextPropertyDeserializer
protected static void setupSemanticTextPropertyDeserializer(ObjectDeserializer<SemanticTextProperty.Builder> op)
-