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

    • 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)