From 799a429a800c65a074e5ffa636ae0e33c0306aa3 Mon Sep 17 00:00:00 2001 From: Kathleen DeRusso Date: Fri, 3 Oct 2025 16:34:53 -0400 Subject: [PATCH] Support explicit null chunking_settings in semantic_text field mappings --- output/schema/schema.json | 22 +++++++++++++++++----- output/typescript/types.ts | 2 +- specification/_types/mapping/core.ts | 2 +- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index 418d1cfccd..737f4c863c 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -87516,11 +87516,23 @@ "name": "chunking_settings", "required": false, "type": { - "kind": "instance_of", - "type": { - "name": "ChunkingSettings", - "namespace": "_types.mapping" - } + "kind": "union_of", + "items": [ + { + "kind": "instance_of", + "type": { + "name": "ChunkingSettings", + "namespace": "_types.mapping" + } + }, + { + "kind": "instance_of", + "type": { + "name": "null", + "namespace": "_builtins" + } + } + ] } }, { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 4e691b87d7..7f3edc1801 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -6066,7 +6066,7 @@ export interface MappingSemanticTextProperty { inference_id?: Id search_inference_id?: Id index_options?: MappingSemanticTextIndexOptions - chunking_settings?: MappingChunkingSettings + chunking_settings?: MappingChunkingSettings | null fields?: Record } diff --git a/specification/_types/mapping/core.ts b/specification/_types/mapping/core.ts index eb5cb3c8f7..d327e9aa07 100644 --- a/specification/_types/mapping/core.ts +++ b/specification/_types/mapping/core.ts @@ -264,7 +264,7 @@ export class SemanticTextProperty { * 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. */ - chunking_settings?: ChunkingSettings + chunking_settings?: ChunkingSettings | null /** * Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one * field for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers.