Class ChunkingSettings

java.lang.Object
co.elastic.clients.elasticsearch._types.mapping.ChunkingSettings
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class ChunkingSettings extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • strategy

      public final String strategy()
      Required - The chunking strategy: sentence or word.

      API name: strategy

    • maxChunkSize

      public final int maxChunkSize()
      Required - The maximum size of a chunk in words. This value cannot be higher than 300 or lower than 20 (for sentence strategy) or 10 (for word strategy).

      API name: max_chunk_size

    • overlap

      @Nullable public final Integer overlap()
      The number of overlapping words for chunks. It is applicable only to a word chunking strategy. This value cannot be higher than half the max_chunk_size value.

      API name: overlap

    • sentenceOverlap

      @Nullable public final Integer sentenceOverlap()
      The number of overlapping sentences for chunks. It is applicable only for a sentence chunking strategy. It can be either 1 or 0.

      API name: sentence_overlap

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

      protected static void setupChunkingSettingsDeserializer(ObjectDeserializer<ChunkingSettings.Builder> op)