From df7cd30acb2756aab46799a1689880fd06aea011 Mon Sep 17 00:00:00 2001 From: Elastic Machine Date: Mon, 21 Apr 2025 06:04:18 +0000 Subject: [PATCH] Auto-generated API code --- docs/reference.asciidoc | 2 +- src/api/types.ts | 14 +++++++++++--- src/api/typesWithBodyKey.ts | 14 +++++++++++--- 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/docs/reference.asciidoc b/docs/reference.asciidoc index 66e576b17..e63f99884 100644 --- a/docs/reference.asciidoc +++ b/docs/reference.asciidoc @@ -7162,7 +7162,7 @@ a new date field is added instead of string. not used at all by Elasticsearch, but can be used to store application-specific metadata. ** *`numeric_detection` (Optional, boolean)*: Automatically map strings into numeric data types for all fields. -** *`properties` (Optional, Record)*: Mapping for a field. For new fields, this mapping can include: +** *`properties` (Optional, Record)*: Mapping for a field. For new fields, this mapping can include: - Field name - Field data type diff --git a/src/api/types.ts b/src/api/types.ts index ef6a8d4d5..2c131b06e 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -5318,6 +5318,13 @@ export interface MappingByteNumberProperty extends MappingNumberPropertyBase { null_value?: byte } +export interface MappingChunkingSettings { + strategy: string + max_chunk_size: integer + overlap?: integer + sentence_overlap?: integer +} + export interface MappingCompletionProperty extends MappingDocValuesPropertyBase { analyzer?: string contexts?: MappingSuggestContext[] @@ -5742,6 +5749,7 @@ export interface MappingSemanticTextProperty { meta?: Record inference_id?: Id search_inference_id?: Id + chunking_settings?: MappingChunkingSettings } export interface MappingShapeProperty extends MappingDocValuesPropertyBase { @@ -22279,11 +22287,11 @@ export interface SpecUtilsCommonQueryParameters { pretty?: boolean } +export interface SpecUtilsOverloadOf { +} + export interface SpecUtilsCommonCatQueryParameters { format?: string help?: boolean v?: boolean } - -export interface SpecUtilsOverloadOf { -} diff --git a/src/api/typesWithBodyKey.ts b/src/api/typesWithBodyKey.ts index 4a4d06eab..c04b59b96 100644 --- a/src/api/typesWithBodyKey.ts +++ b/src/api/typesWithBodyKey.ts @@ -5395,6 +5395,13 @@ export interface MappingByteNumberProperty extends MappingNumberPropertyBase { null_value?: byte } +export interface MappingChunkingSettings { + strategy: string + max_chunk_size: integer + overlap?: integer + sentence_overlap?: integer +} + export interface MappingCompletionProperty extends MappingDocValuesPropertyBase { analyzer?: string contexts?: MappingSuggestContext[] @@ -5819,6 +5826,7 @@ export interface MappingSemanticTextProperty { meta?: Record inference_id?: Id search_inference_id?: Id + chunking_settings?: MappingChunkingSettings } export interface MappingShapeProperty extends MappingDocValuesPropertyBase { @@ -22914,11 +22922,11 @@ export interface SpecUtilsCommonQueryParameters { pretty?: boolean } +export interface SpecUtilsOverloadOf { +} + export interface SpecUtilsCommonCatQueryParameters { format?: string help?: boolean v?: boolean } - -export interface SpecUtilsOverloadOf { -}