Skip to content

Commit c0d22ab

Browse files
Auto-generated API code (#2774)
1 parent c61b859 commit c0d22ab

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

docs/reference.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -7162,7 +7162,7 @@ a new date field is added instead of string.
71627162
not used at all by Elasticsearch, but can be used to store
71637163
application-specific metadata.
71647164
** *`numeric_detection` (Optional, boolean)*: Automatically map strings into numeric data types for all fields.
7165-
** *`properties` (Optional, Record<string, { type } | { boost, fielddata, index, null_value, ignore_malformed, script, on_script_error, time_series_dimension, type } | { type, enabled, null_value, boost, coerce, script, on_script_error, ignore_malformed, time_series_metric, analyzer, eager_global_ordinals, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, format, precision_step, locale } | { relations, eager_global_ordinals, type } | { boost, eager_global_ordinals, index, index_options, script, on_script_error, normalizer, norms, null_value, similarity, split_queries_on_whitespace, time_series_dimension, type } | { type, fields, meta, copy_to } | { type } | { positive_score_impact, type } | { positive_score_impact, type } | { analyzer, index, index_options, max_shingle_size, norms, search_analyzer, search_quote_analyzer, similarity, term_vector, type } | { analyzer, boost, eager_global_ordinals, fielddata, fielddata_frequency_filter, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, similarity, term_vector, type } | { type } | { type, null_value } | { boost, format, ignore_malformed, index, script, on_script_error, null_value, precision_step, type } | { boost, fielddata, format, ignore_malformed, index, script, on_script_error, null_value, precision_step, locale, type } | { type, default_metric, metrics, time_series_metric } | { type, dims, element_type, index, index_options, similarity } | { boost, depth_limit, doc_values, eager_global_ordinals, index, index_options, null_value, similarity, split_queries_on_whitespace, type } | { enabled, include_in_parent, include_in_root, type } | { enabled, subobjects, type } | { type, enabled, priority, time_series_dimension } | { type, meta, inference_id, search_inference_id } | { type } | { analyzer, contexts, max_input_length, preserve_position_increments, preserve_separators, search_analyzer, type } | { value, type } | { type, index } | { path, type } | { ignore_malformed, type } | { boost, index, ignore_malformed, null_value, on_script_error, script, time_series_dimension, type } | { type } | { analyzer, boost, index, null_value, enable_position_increments, type } | { ignore_malformed, ignore_z_value, null_value, index, on_script_error, script, type } | { coerce, ignore_malformed, ignore_z_value, index, orientation, strategy, type } | { ignore_malformed, ignore_z_value, null_value, type } | { coerce, ignore_malformed, ignore_z_value, orientation, type } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value, scaling_factor } | { type, null_value } | { type, null_value } | { format, type } | { type } | { type } | { type } | { type } | { type } | { type, norms, index_options, index, null_value, rules, language, country, variant, strength, decomposition, alternate, case_level, case_first, numeric, variable_top, hiragana_quaternary_mode }>)*: Mapping for a field. For new fields, this mapping can include:
7165+
** *`properties` (Optional, Record<string, { type } | { boost, fielddata, index, null_value, ignore_malformed, script, on_script_error, time_series_dimension, type } | { type, enabled, null_value, boost, coerce, script, on_script_error, ignore_malformed, time_series_metric, analyzer, eager_global_ordinals, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, format, precision_step, locale } | { relations, eager_global_ordinals, type } | { boost, eager_global_ordinals, index, index_options, script, on_script_error, normalizer, norms, null_value, similarity, split_queries_on_whitespace, time_series_dimension, type } | { type, fields, meta, copy_to } | { type } | { positive_score_impact, type } | { positive_score_impact, type } | { analyzer, index, index_options, max_shingle_size, norms, search_analyzer, search_quote_analyzer, similarity, term_vector, type } | { analyzer, boost, eager_global_ordinals, fielddata, fielddata_frequency_filter, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, similarity, term_vector, type } | { type } | { type, null_value } | { boost, format, ignore_malformed, index, script, on_script_error, null_value, precision_step, type } | { boost, fielddata, format, ignore_malformed, index, script, on_script_error, null_value, precision_step, locale, type } | { type, default_metric, metrics, time_series_metric } | { type, dims, element_type, index, index_options, similarity } | { boost, depth_limit, doc_values, eager_global_ordinals, index, index_options, null_value, similarity, split_queries_on_whitespace, type } | { enabled, include_in_parent, include_in_root, type } | { enabled, subobjects, type } | { type, enabled, priority, time_series_dimension } | { type, meta, inference_id, search_inference_id, chunking_settings } | { type } | { analyzer, contexts, max_input_length, preserve_position_increments, preserve_separators, search_analyzer, type } | { value, type } | { type, index } | { path, type } | { ignore_malformed, type } | { boost, index, ignore_malformed, null_value, on_script_error, script, time_series_dimension, type } | { type } | { analyzer, boost, index, null_value, enable_position_increments, type } | { ignore_malformed, ignore_z_value, null_value, index, on_script_error, script, type } | { coerce, ignore_malformed, ignore_z_value, index, orientation, strategy, type } | { ignore_malformed, ignore_z_value, null_value, type } | { coerce, ignore_malformed, ignore_z_value, orientation, type } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value, scaling_factor } | { type, null_value } | { type, null_value } | { format, type } | { type } | { type } | { type } | { type } | { type } | { type, norms, index_options, index, null_value, rules, language, country, variant, strength, decomposition, alternate, case_level, case_first, numeric, variable_top, hiragana_quaternary_mode }>)*: Mapping for a field. For new fields, this mapping can include:
71667166

71677167
- Field name
71687168
- Field data type

src/api/types.ts

+11-3
Original file line numberDiff line numberDiff line change
@@ -5318,6 +5318,13 @@ export interface MappingByteNumberProperty extends MappingNumberPropertyBase {
53185318
null_value?: byte
53195319
}
53205320

5321+
export interface MappingChunkingSettings {
5322+
strategy: string
5323+
max_chunk_size: integer
5324+
overlap?: integer
5325+
sentence_overlap?: integer
5326+
}
5327+
53215328
export interface MappingCompletionProperty extends MappingDocValuesPropertyBase {
53225329
analyzer?: string
53235330
contexts?: MappingSuggestContext[]
@@ -5742,6 +5749,7 @@ export interface MappingSemanticTextProperty {
57425749
meta?: Record<string, string>
57435750
inference_id?: Id
57445751
search_inference_id?: Id
5752+
chunking_settings?: MappingChunkingSettings
57455753
}
57465754

57475755
export interface MappingShapeProperty extends MappingDocValuesPropertyBase {
@@ -22279,11 +22287,11 @@ export interface SpecUtilsCommonQueryParameters {
2227922287
pretty?: boolean
2228022288
}
2228122289

22290+
export interface SpecUtilsOverloadOf<TDefinition = unknown> {
22291+
}
22292+
2228222293
export interface SpecUtilsCommonCatQueryParameters {
2228322294
format?: string
2228422295
help?: boolean
2228522296
v?: boolean
2228622297
}
22287-
22288-
export interface SpecUtilsOverloadOf<TDefinition = unknown> {
22289-
}

src/api/typesWithBodyKey.ts

+11-3
Original file line numberDiff line numberDiff line change
@@ -5395,6 +5395,13 @@ export interface MappingByteNumberProperty extends MappingNumberPropertyBase {
53955395
null_value?: byte
53965396
}
53975397

5398+
export interface MappingChunkingSettings {
5399+
strategy: string
5400+
max_chunk_size: integer
5401+
overlap?: integer
5402+
sentence_overlap?: integer
5403+
}
5404+
53985405
export interface MappingCompletionProperty extends MappingDocValuesPropertyBase {
53995406
analyzer?: string
54005407
contexts?: MappingSuggestContext[]
@@ -5819,6 +5826,7 @@ export interface MappingSemanticTextProperty {
58195826
meta?: Record<string, string>
58205827
inference_id?: Id
58215828
search_inference_id?: Id
5829+
chunking_settings?: MappingChunkingSettings
58225830
}
58235831

58245832
export interface MappingShapeProperty extends MappingDocValuesPropertyBase {
@@ -22914,11 +22922,11 @@ export interface SpecUtilsCommonQueryParameters {
2291422922
pretty?: boolean
2291522923
}
2291622924

22925+
export interface SpecUtilsOverloadOf<TDefinition = unknown> {
22926+
}
22927+
2291722928
export interface SpecUtilsCommonCatQueryParameters {
2291822929
format?: string
2291922930
help?: boolean
2292022931
v?: boolean
2292122932
}
22922-
22923-
export interface SpecUtilsOverloadOf<TDefinition = unknown> {
22924-
}

0 commit comments

Comments
 (0)