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:
  • Field Details

  • Method Details

    • of

    • _propertyKind

      public Property.Kind _propertyKind()
      Property variant kind.
      Specified by:
      _propertyKind in interface PropertyVariant
    • meta

      public final Map<String,String> meta()
      API name: meta
    • inferenceId

      @Nullable public final String 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. If search_inference_id is specified, the inference endpoint will only be used at index time.

      API name: inference_id

    • searchInferenceId

      @Nullable public final String 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

      @Nullable public final SemanticTextIndexOptions indexOptions()
      Settings for index_options that override any defaults used by semantic_text, for example specific quantization settings.

      API name: index_options

    • chunkingSettings

      @Nullable public final ChunkingSettings 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

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupSemanticTextPropertyDeserializer

      protected static void setupSemanticTextPropertyDeserializer(ObjectDeserializer<SemanticTextProperty.Builder> op)