Class ChunkingSettings
java.lang.Object
co.elastic.clients.elasticsearch._types.mapping.ChunkingSettings
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ChunkingSettings>Json deserializer forChunkingSettings -
Method Summary
Modifier and TypeMethodDescriptionfinal intRequired - The maximum size of a chunk in words.static ChunkingSettingsfinal Integeroverlap()The number of overlapping words for chunks.final IntegerThe number of overlapping sentences for chunks.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringstrategy()Required - The chunking strategy:sentenceorword.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forChunkingSettings
-
-
Method Details
-
of
public static ChunkingSettings of(Function<ChunkingSettings.Builder, ObjectBuilder<ChunkingSettings>> fn) -
strategy
Required - The chunking strategy:sentenceorword.API name:
strategy -
maxChunkSize
public final int maxChunkSize()Required - The maximum size of a chunk in words. This value cannot be higher than300or lower than20(forsentencestrategy) or10(forwordstrategy).API name:
max_chunk_size -
overlap
The number of overlapping words for chunks. It is applicable only to awordchunking strategy. This value cannot be higher than half themax_chunk_sizevalue.API name:
overlap -
sentenceOverlap
The number of overlapping sentences for chunks. It is applicable only for asentencechunking strategy. It can be either1or0.API name:
sentence_overlap -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupChunkingSettingsDeserializer
protected static void setupChunkingSettingsDeserializer(ObjectDeserializer<ChunkingSettings.Builder> op)
-