Auto-generated code for main (#2351)

Co-authored-by: Josh Mock <joshua.mock@elastic.co>
This commit is contained in:
Elastic Machine
2024-08-26 20:31:53 +01:00
committed by GitHub
parent 608b517d64
commit 60aa521b7e
7 changed files with 620 additions and 29 deletions

View File

@ -0,0 +1,12 @@
// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response = await client.cluster.allocationExplain({
index: "my-index",
shard: 0,
primary: false,
});
console.log(response);
----

View File

@ -0,0 +1,16 @@
// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response = await client.slm.putLifecycle({
policy_id: "hourly-snapshots",
schedule: "1h",
name: "<hourly-snap-{now/d}>",
repository: "my_repository",
config: {
indices: ["data-*", "important"],
},
});
console.log(response);
----

View File

@ -0,0 +1,21 @@
// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response = await client.indices.putIndexTemplate({
name: "template",
index_patterns: ["my-data-stream*"],
data_stream: {},
priority: 500,
template: {
lifecycle: {
data_retention: "7d",
},
},
_meta: {
description: "Template with data stream lifecycle",
},
});
console.log(response);
----

View File

@ -0,0 +1,13 @@
// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response = await client.cluster.putSettings({
persistent: {
"data_streams.lifecycle.retention.default": "7d",
"data_streams.lifecycle.retention.max": "90d",
},
});
console.log(response);
----

View File

@ -1351,6 +1351,7 @@ If the index has a default ingest pipeline specified, then setting the value to
If a final pipeline is configured it will always run, regardless of the value of this parameter.
** *`preference` (Optional, string)*: Specifies the node or shard the operation should be performed on.
Random by default.
** *`q` (Optional, string)*: Query in the Lucene query string syntax.
** *`refresh` (Optional, boolean)*: If `true`, Elasticsearch refreshes affected shards to make the operation visible to search.
** *`request_cache` (Optional, boolean)*: If `true`, the request cache is used for this request.
** *`requests_per_second` (Optional, float)*: The throttle for this request in sub-requests per second.
@ -8355,7 +8356,7 @@ client.queryRules.putRule({ ruleset_id, rule_id, type, criteria, actions })
* *Request (object):*
** *`ruleset_id` (string)*: The unique identifier of the query ruleset containing the rule to be created or updated
** *`rule_id` (string)*: The unique identifier of the query rule within the specified ruleset to be created or updated
** *`type` (Enum("pinned"))*
** *`type` (Enum("pinned" | "exclude"))*
** *`criteria` ({ type, metadata, values } | { type, metadata, values }[])*
** *`actions` ({ ids, docs })*
** *`priority` (Optional, number)*

View File

@ -361,6 +361,7 @@ export interface FieldCapsResponse {
export interface GetGetResult<TDocument = unknown> {
_index: IndexName
fields?: Record<string, any>
_ignored?: string[]
found: boolean
_id: Id
_primary_term?: long
@ -459,6 +460,16 @@ export interface HealthReportBaseIndicator {
diagnosis?: HealthReportDiagnosis[]
}
export interface HealthReportDataStreamLifecycleDetails {
stagnating_backing_indices_count: integer
total_backing_indices_in_error: integer
stagnating_backing_indices?: HealthReportStagnatingBackingIndices[]
}
export interface HealthReportDataStreamLifecycleIndicator extends HealthReportBaseIndicator {
details?: HealthReportDataStreamLifecycleDetails
}
export interface HealthReportDiagnosis {
id: string
action: string
@ -518,6 +529,7 @@ export interface HealthReportIndicators {
shards_availability?: HealthReportShardsAvailabilityIndicator
disk?: HealthReportDiskIndicator
repository_integrity?: HealthReportRepositoryIntegrityIndicator
data_stream_lifecycle?: HealthReportDataStreamLifecycleIndicator
ilm?: HealthReportIlmIndicator
slm?: HealthReportSlmIndicator
shards_capacity?: HealthReportShardsCapacityIndicator
@ -614,6 +626,12 @@ export interface HealthReportSlmIndicatorUnhealthyPolicies {
invocations_since_last_success?: Record<string, long>
}
export interface HealthReportStagnatingBackingIndices {
index_name: IndexName
first_occurrence_timestamp: long
retry_count: integer
}
export interface IndexRequest<TDocument = unknown> extends RequestBase {
id?: Id
index: IndexName
@ -1402,7 +1420,6 @@ export interface SearchHighlightBase {
export interface SearchHighlightField extends SearchHighlightBase {
fragment_offset?: integer
matched_fields?: Fields
analyzer?: AnalysisAnalyzer
}
export type SearchHighlighterEncoder = 'default' | 'html'
@ -1904,6 +1921,7 @@ export interface UpdateByQueryRequest extends RequestBase {
lenient?: boolean
pipeline?: string
preference?: string
q?: string
refresh?: boolean
request_cache?: boolean
requests_per_second?: float
@ -4210,13 +4228,61 @@ export interface AggregationsWeightedAverageValue {
export interface AggregationsWeightedAvgAggregate extends AggregationsSingleMetricAggregateBase {
}
export type AnalysisAnalyzer = AnalysisCustomAnalyzer | AnalysisFingerprintAnalyzer | AnalysisKeywordAnalyzer | AnalysisLanguageAnalyzer | AnalysisNoriAnalyzer | AnalysisPatternAnalyzer | AnalysisSimpleAnalyzer | AnalysisStandardAnalyzer | AnalysisStopAnalyzer | AnalysisWhitespaceAnalyzer | AnalysisIcuAnalyzer | AnalysisKuromojiAnalyzer | AnalysisSnowballAnalyzer | AnalysisDutchAnalyzer
export type AnalysisAnalyzer = AnalysisCustomAnalyzer | AnalysisFingerprintAnalyzer | AnalysisKeywordAnalyzer | AnalysisLanguageAnalyzer | AnalysisNoriAnalyzer | AnalysisPatternAnalyzer | AnalysisSimpleAnalyzer | AnalysisStandardAnalyzer | AnalysisStopAnalyzer | AnalysisWhitespaceAnalyzer | AnalysisIcuAnalyzer | AnalysisKuromojiAnalyzer | AnalysisSnowballAnalyzer | AnalysisArabicAnalyzer | AnalysisArmenianAnalyzer | AnalysisBasqueAnalyzer | AnalysisBengaliAnalyzer | AnalysisBrazilianAnalyzer | AnalysisBulgarianAnalyzer | AnalysisCatalanAnalyzer | AnalysisChineseAnalyzer | AnalysisCjkAnalyzer | AnalysisCzechAnalyzer | AnalysisDanishAnalyzer | AnalysisDutchAnalyzer | AnalysisEnglishAnalyzer | AnalysisEstonianAnalyzer | AnalysisFinnishAnalyzer | AnalysisFrenchAnalyzer | AnalysisGalicianAnalyzer | AnalysisGermanAnalyzer | AnalysisGreekAnalyzer | AnalysisHindiAnalyzer | AnalysisHungarianAnalyzer | AnalysisIndonesianAnalyzer | AnalysisIrishAnalyzer | AnalysisItalianAnalyzer | AnalysisLatvianAnalyzer | AnalysisLithuanianAnalyzer | AnalysisNorwegianAnalyzer | AnalysisPersianAnalyzer | AnalysisPortugueseAnalyzer | AnalysisRomanianAnalyzer | AnalysisRussianAnalyzer | AnalysisSerbianAnalyzer | AnalysisSoraniAnalyzer | AnalysisSpanishAnalyzer | AnalysisSwedishAnalyzer | AnalysisTurkishAnalyzer | AnalysisThaiAnalyzer
export interface AnalysisArabicAnalyzer {
type: 'arabic'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisArmenianAnalyzer {
type: 'armenian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisAsciiFoldingTokenFilter extends AnalysisTokenFilterBase {
type: 'asciifolding'
preserve_original?: SpecUtilsStringified<boolean>
}
export interface AnalysisBasqueAnalyzer {
type: 'basque'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisBengaliAnalyzer {
type: 'bengali'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisBrazilianAnalyzer {
type: 'brazilian'
stopwords?: AnalysisStopWords
stopwords_path?: string
}
export interface AnalysisBulgarianAnalyzer {
type: 'bulgarian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisCatalanAnalyzer {
type: 'catalan'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export type AnalysisCharFilter = string | AnalysisCharFilterDefinition
export interface AnalysisCharFilterBase {
@ -4231,6 +4297,18 @@ export interface AnalysisCharGroupTokenizer extends AnalysisTokenizerBase {
max_token_length?: integer
}
export interface AnalysisChineseAnalyzer {
type: 'chinese'
stopwords?: AnalysisStopWords
stopwords_path?: string
}
export interface AnalysisCjkAnalyzer {
type: 'cjk'
stopwords?: AnalysisStopWords
stopwords_path?: string
}
export interface AnalysisCommonGramsTokenFilter extends AnalysisTokenFilterBase {
type: 'common_grams'
common_words?: string[]
@ -4270,6 +4348,19 @@ export interface AnalysisCustomNormalizer {
filter?: string[]
}
export interface AnalysisCzechAnalyzer {
type: 'czech'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisDanishAnalyzer {
type: 'danish'
stopwords?: AnalysisStopWords
stopwords_path?: string
}
export type AnalysisDelimitedPayloadEncoding = 'int' | 'float' | 'identity'
export interface AnalysisDelimitedPayloadTokenFilter extends AnalysisTokenFilterBase {
@ -4285,6 +4376,8 @@ export interface AnalysisDictionaryDecompounderTokenFilter extends AnalysisCompo
export interface AnalysisDutchAnalyzer {
type: 'dutch'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export type AnalysisEdgeNGramSide = 'front' | 'back'
@ -4312,6 +4405,19 @@ export interface AnalysisElisionTokenFilter extends AnalysisTokenFilterBase {
articles_case?: SpecUtilsStringified<boolean>
}
export interface AnalysisEnglishAnalyzer {
type: 'english'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisEstonianAnalyzer {
type: 'estonian'
stopwords?: AnalysisStopWords
stopwords_path?: string
}
export interface AnalysisFingerprintAnalyzer {
type: 'fingerprint'
version?: VersionString
@ -4328,11 +4434,59 @@ export interface AnalysisFingerprintTokenFilter extends AnalysisTokenFilterBase
separator?: string
}
export interface AnalysisFinnishAnalyzer {
type: 'finnish'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisFrenchAnalyzer {
type: 'french'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisGalicianAnalyzer {
type: 'galician'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisGermanAnalyzer {
type: 'german'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisGreekAnalyzer {
type: 'greek'
stopwords?: AnalysisStopWords
stopwords_path?: string
}
export interface AnalysisHindiAnalyzer {
type: 'hindi'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisHtmlStripCharFilter extends AnalysisCharFilterBase {
type: 'html_strip'
escaped_tags?: string[]
}
export interface AnalysisHungarianAnalyzer {
type: 'hungarian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisHunspellTokenFilter extends AnalysisTokenFilterBase {
type: 'hunspell'
dedup?: boolean
@ -4408,6 +4562,27 @@ export interface AnalysisIcuTransformTokenFilter extends AnalysisTokenFilterBase
id: string
}
export interface AnalysisIndonesianAnalyzer {
type: 'indonesian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisIrishAnalyzer {
type: 'irish'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisItalianAnalyzer {
type: 'italian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisKStemTokenFilter extends AnalysisTokenFilterBase {
type: 'kstem'
}
@ -4496,6 +4671,13 @@ export interface AnalysisLanguageAnalyzer {
stopwords_path?: string
}
export interface AnalysisLatvianAnalyzer {
type: 'latvian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisLengthTokenFilter extends AnalysisTokenFilterBase {
type: 'length'
max?: integer
@ -4512,6 +4694,13 @@ export interface AnalysisLimitTokenCountTokenFilter extends AnalysisTokenFilterB
max_token_count?: SpecUtilsStringified<integer>
}
export interface AnalysisLithuanianAnalyzer {
type: 'lithuanian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisLowercaseNormalizer {
type: 'lowercase'
}
@ -4577,6 +4766,13 @@ export interface AnalysisNoriTokenizer extends AnalysisTokenizerBase {
export type AnalysisNormalizer = AnalysisLowercaseNormalizer | AnalysisCustomNormalizer
export interface AnalysisNorwegianAnalyzer {
type: 'norwegian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisPathHierarchyTokenizer extends AnalysisTokenizerBase {
type: 'path_hierarchy'
buffer_size?: SpecUtilsStringified<integer>
@ -4623,6 +4819,12 @@ export interface AnalysisPatternTokenizer extends AnalysisTokenizerBase {
pattern?: string
}
export interface AnalysisPersianAnalyzer {
type: 'persian'
stopwords?: AnalysisStopWords
stopwords_path?: string
}
export type AnalysisPhoneticEncoder = 'metaphone' | 'double_metaphone' | 'soundex' | 'refined_soundex' | 'caverphone1' | 'caverphone2' | 'cologne' | 'nysiis' | 'koelnerphonetik' | 'haasephonetik' | 'beider_morse' | 'daitch_mokotoff'
export type AnalysisPhoneticLanguage = 'any' | 'common' | 'cyrillic' | 'english' | 'french' | 'german' | 'hebrew' | 'hungarian' | 'polish' | 'romanian' | 'russian' | 'spanish'
@ -4645,6 +4847,13 @@ export interface AnalysisPorterStemTokenFilter extends AnalysisTokenFilterBase {
type: 'porter_stem'
}
export interface AnalysisPortugueseAnalyzer {
type: 'portuguese'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisPredicateTokenFilter extends AnalysisTokenFilterBase {
type: 'predicate_token_filter'
script: Script | string
@ -4658,6 +4867,27 @@ export interface AnalysisReverseTokenFilter extends AnalysisTokenFilterBase {
type: 'reverse'
}
export interface AnalysisRomanianAnalyzer {
type: 'romanian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisRussianAnalyzer {
type: 'russian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisSerbianAnalyzer {
type: 'serbian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisShingleTokenFilter extends AnalysisTokenFilterBase {
type: 'shingle'
filler_token?: string
@ -4687,6 +4917,20 @@ export interface AnalysisSnowballTokenFilter extends AnalysisTokenFilterBase {
language?: AnalysisSnowballLanguage
}
export interface AnalysisSoraniAnalyzer {
type: 'sorani'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisSpanishAnalyzer {
type: 'spanish'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisStandardAnalyzer {
type: 'standard'
max_token_length?: integer
@ -4727,6 +4971,13 @@ export interface AnalysisStopTokenFilter extends AnalysisTokenFilterBase {
export type AnalysisStopWords = string | string[]
export interface AnalysisSwedishAnalyzer {
type: 'swedish'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export type AnalysisSynonymFormat = 'solr' | 'wordnet'
export interface AnalysisSynonymGraphTokenFilter extends AnalysisTokenFilterBase {
@ -4753,6 +5004,12 @@ export interface AnalysisSynonymTokenFilter extends AnalysisTokenFilterBase {
updateable?: boolean
}
export interface AnalysisThaiAnalyzer {
type: 'thai'
stopwords?: AnalysisStopWords
stopwords_path?: string
}
export type AnalysisTokenChar = 'letter' | 'digit' | 'whitespace' | 'punctuation' | 'symbol' | 'custom'
export type AnalysisTokenFilter = string | AnalysisTokenFilterDefinition
@ -4780,6 +5037,13 @@ export interface AnalysisTruncateTokenFilter extends AnalysisTokenFilterBase {
length?: integer
}
export interface AnalysisTurkishAnalyzer {
type: 'turkish'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisUaxEmailUrlTokenizer extends AnalysisTokenizerBase {
type: 'uax_url_email'
max_token_length?: integer
@ -10257,6 +10521,7 @@ export interface IndicesCacheQueries {
export interface IndicesDataStream {
_meta?: Metadata
allow_custom_routing?: boolean
failure_store?: IndicesFailureStore
generation: integer
hidden: boolean
ilm_policy?: Name
@ -10266,6 +10531,7 @@ export interface IndicesDataStream {
lifecycle?: IndicesDataStreamLifecycleWithRollover
name: DataStreamName
replicated?: boolean
rollover_on_write: boolean
status: HealthStatus
system?: boolean
template: Name
@ -10276,8 +10542,8 @@ export interface IndicesDataStreamIndex {
index_name: IndexName
index_uuid: Uuid
ilm_policy?: Name
managed_by: IndicesManagedBy
prefer_ilm: boolean
managed_by?: IndicesManagedBy
prefer_ilm?: boolean
}
export interface IndicesDataStreamLifecycle {
@ -10325,6 +10591,12 @@ export interface IndicesDownsamplingRound {
config: IndicesDownsampleConfig
}
export interface IndicesFailureStore {
enabled: boolean
indices: IndicesDataStreamIndex[]
rollover_on_write: boolean
}
export interface IndicesFielddataFrequencyFilter {
max: double
min: double
@ -13689,7 +13961,7 @@ export interface MlPerPartitionCategorization {
stop_on_warn?: boolean
}
export type MlPredictedValue = string | double | boolean | integer
export type MlPredictedValue = ScalarValue | ScalarValue[]
export interface MlQuestionAnsweringInferenceOptions {
num_top_classes?: integer
@ -15700,13 +15972,6 @@ export interface NodesGetRepositoriesMeteringInfoResponseBase extends NodesNodes
nodes: Record<string, NodesRepositoryMeteringInformation>
}
export interface NodesHotThreadsHotThread {
hosts: Host[]
node_id: Id
node_name: Name
threads: string[]
}
export interface NodesHotThreadsRequest extends RequestBase {
node_id?: NodeIds
ignore_idle_threads?: boolean
@ -15720,7 +15985,6 @@ export interface NodesHotThreadsRequest extends RequestBase {
}
export interface NodesHotThreadsResponse {
hot_threads: NodesHotThreadsHotThread[]
}
export interface NodesInfoDeprecationIndexing {
@ -16158,7 +16422,7 @@ export interface QueryRulesQueryRuleCriteria {
export type QueryRulesQueryRuleCriteriaType = 'global' | 'exact' | 'exact_fuzzy' | 'fuzzy' | 'prefix' | 'suffix' | 'contains' | 'lt' | 'lte' | 'gt' | 'gte' | 'always'
export type QueryRulesQueryRuleType = 'pinned'
export type QueryRulesQueryRuleType = 'pinned' | 'exclude'
export interface QueryRulesQueryRuleset {
ruleset_id: Id

View File

@ -382,6 +382,7 @@ export interface FieldCapsResponse {
export interface GetGetResult<TDocument = unknown> {
_index: IndexName
fields?: Record<string, any>
_ignored?: string[]
found: boolean
_id: Id
_primary_term?: long
@ -480,6 +481,16 @@ export interface HealthReportBaseIndicator {
diagnosis?: HealthReportDiagnosis[]
}
export interface HealthReportDataStreamLifecycleDetails {
stagnating_backing_indices_count: integer
total_backing_indices_in_error: integer
stagnating_backing_indices?: HealthReportStagnatingBackingIndices[]
}
export interface HealthReportDataStreamLifecycleIndicator extends HealthReportBaseIndicator {
details?: HealthReportDataStreamLifecycleDetails
}
export interface HealthReportDiagnosis {
id: string
action: string
@ -539,6 +550,7 @@ export interface HealthReportIndicators {
shards_availability?: HealthReportShardsAvailabilityIndicator
disk?: HealthReportDiskIndicator
repository_integrity?: HealthReportRepositoryIntegrityIndicator
data_stream_lifecycle?: HealthReportDataStreamLifecycleIndicator
ilm?: HealthReportIlmIndicator
slm?: HealthReportSlmIndicator
shards_capacity?: HealthReportShardsCapacityIndicator
@ -635,6 +647,12 @@ export interface HealthReportSlmIndicatorUnhealthyPolicies {
invocations_since_last_success?: Record<string, long>
}
export interface HealthReportStagnatingBackingIndices {
index_name: IndexName
first_occurrence_timestamp: long
retry_count: integer
}
export interface IndexRequest<TDocument = unknown> extends RequestBase {
id?: Id
index: IndexName
@ -1457,7 +1475,6 @@ export interface SearchHighlightBase {
export interface SearchHighlightField extends SearchHighlightBase {
fragment_offset?: integer
matched_fields?: Fields
analyzer?: AnalysisAnalyzer
}
export type SearchHighlighterEncoder = 'default' | 'html'
@ -1974,6 +1991,7 @@ export interface UpdateByQueryRequest extends RequestBase {
lenient?: boolean
pipeline?: string
preference?: string
q?: string
refresh?: boolean
request_cache?: boolean
requests_per_second?: float
@ -4283,13 +4301,61 @@ export interface AggregationsWeightedAverageValue {
export interface AggregationsWeightedAvgAggregate extends AggregationsSingleMetricAggregateBase {
}
export type AnalysisAnalyzer = AnalysisCustomAnalyzer | AnalysisFingerprintAnalyzer | AnalysisKeywordAnalyzer | AnalysisLanguageAnalyzer | AnalysisNoriAnalyzer | AnalysisPatternAnalyzer | AnalysisSimpleAnalyzer | AnalysisStandardAnalyzer | AnalysisStopAnalyzer | AnalysisWhitespaceAnalyzer | AnalysisIcuAnalyzer | AnalysisKuromojiAnalyzer | AnalysisSnowballAnalyzer | AnalysisDutchAnalyzer
export type AnalysisAnalyzer = AnalysisCustomAnalyzer | AnalysisFingerprintAnalyzer | AnalysisKeywordAnalyzer | AnalysisLanguageAnalyzer | AnalysisNoriAnalyzer | AnalysisPatternAnalyzer | AnalysisSimpleAnalyzer | AnalysisStandardAnalyzer | AnalysisStopAnalyzer | AnalysisWhitespaceAnalyzer | AnalysisIcuAnalyzer | AnalysisKuromojiAnalyzer | AnalysisSnowballAnalyzer | AnalysisArabicAnalyzer | AnalysisArmenianAnalyzer | AnalysisBasqueAnalyzer | AnalysisBengaliAnalyzer | AnalysisBrazilianAnalyzer | AnalysisBulgarianAnalyzer | AnalysisCatalanAnalyzer | AnalysisChineseAnalyzer | AnalysisCjkAnalyzer | AnalysisCzechAnalyzer | AnalysisDanishAnalyzer | AnalysisDutchAnalyzer | AnalysisEnglishAnalyzer | AnalysisEstonianAnalyzer | AnalysisFinnishAnalyzer | AnalysisFrenchAnalyzer | AnalysisGalicianAnalyzer | AnalysisGermanAnalyzer | AnalysisGreekAnalyzer | AnalysisHindiAnalyzer | AnalysisHungarianAnalyzer | AnalysisIndonesianAnalyzer | AnalysisIrishAnalyzer | AnalysisItalianAnalyzer | AnalysisLatvianAnalyzer | AnalysisLithuanianAnalyzer | AnalysisNorwegianAnalyzer | AnalysisPersianAnalyzer | AnalysisPortugueseAnalyzer | AnalysisRomanianAnalyzer | AnalysisRussianAnalyzer | AnalysisSerbianAnalyzer | AnalysisSoraniAnalyzer | AnalysisSpanishAnalyzer | AnalysisSwedishAnalyzer | AnalysisTurkishAnalyzer | AnalysisThaiAnalyzer
export interface AnalysisArabicAnalyzer {
type: 'arabic'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisArmenianAnalyzer {
type: 'armenian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisAsciiFoldingTokenFilter extends AnalysisTokenFilterBase {
type: 'asciifolding'
preserve_original?: SpecUtilsStringified<boolean>
}
export interface AnalysisBasqueAnalyzer {
type: 'basque'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisBengaliAnalyzer {
type: 'bengali'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisBrazilianAnalyzer {
type: 'brazilian'
stopwords?: AnalysisStopWords
stopwords_path?: string
}
export interface AnalysisBulgarianAnalyzer {
type: 'bulgarian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisCatalanAnalyzer {
type: 'catalan'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export type AnalysisCharFilter = string | AnalysisCharFilterDefinition
export interface AnalysisCharFilterBase {
@ -4304,6 +4370,18 @@ export interface AnalysisCharGroupTokenizer extends AnalysisTokenizerBase {
max_token_length?: integer
}
export interface AnalysisChineseAnalyzer {
type: 'chinese'
stopwords?: AnalysisStopWords
stopwords_path?: string
}
export interface AnalysisCjkAnalyzer {
type: 'cjk'
stopwords?: AnalysisStopWords
stopwords_path?: string
}
export interface AnalysisCommonGramsTokenFilter extends AnalysisTokenFilterBase {
type: 'common_grams'
common_words?: string[]
@ -4343,6 +4421,19 @@ export interface AnalysisCustomNormalizer {
filter?: string[]
}
export interface AnalysisCzechAnalyzer {
type: 'czech'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisDanishAnalyzer {
type: 'danish'
stopwords?: AnalysisStopWords
stopwords_path?: string
}
export type AnalysisDelimitedPayloadEncoding = 'int' | 'float' | 'identity'
export interface AnalysisDelimitedPayloadTokenFilter extends AnalysisTokenFilterBase {
@ -4358,6 +4449,8 @@ export interface AnalysisDictionaryDecompounderTokenFilter extends AnalysisCompo
export interface AnalysisDutchAnalyzer {
type: 'dutch'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export type AnalysisEdgeNGramSide = 'front' | 'back'
@ -4385,6 +4478,19 @@ export interface AnalysisElisionTokenFilter extends AnalysisTokenFilterBase {
articles_case?: SpecUtilsStringified<boolean>
}
export interface AnalysisEnglishAnalyzer {
type: 'english'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisEstonianAnalyzer {
type: 'estonian'
stopwords?: AnalysisStopWords
stopwords_path?: string
}
export interface AnalysisFingerprintAnalyzer {
type: 'fingerprint'
version?: VersionString
@ -4401,11 +4507,59 @@ export interface AnalysisFingerprintTokenFilter extends AnalysisTokenFilterBase
separator?: string
}
export interface AnalysisFinnishAnalyzer {
type: 'finnish'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisFrenchAnalyzer {
type: 'french'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisGalicianAnalyzer {
type: 'galician'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisGermanAnalyzer {
type: 'german'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisGreekAnalyzer {
type: 'greek'
stopwords?: AnalysisStopWords
stopwords_path?: string
}
export interface AnalysisHindiAnalyzer {
type: 'hindi'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisHtmlStripCharFilter extends AnalysisCharFilterBase {
type: 'html_strip'
escaped_tags?: string[]
}
export interface AnalysisHungarianAnalyzer {
type: 'hungarian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisHunspellTokenFilter extends AnalysisTokenFilterBase {
type: 'hunspell'
dedup?: boolean
@ -4481,6 +4635,27 @@ export interface AnalysisIcuTransformTokenFilter extends AnalysisTokenFilterBase
id: string
}
export interface AnalysisIndonesianAnalyzer {
type: 'indonesian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisIrishAnalyzer {
type: 'irish'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisItalianAnalyzer {
type: 'italian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisKStemTokenFilter extends AnalysisTokenFilterBase {
type: 'kstem'
}
@ -4569,6 +4744,13 @@ export interface AnalysisLanguageAnalyzer {
stopwords_path?: string
}
export interface AnalysisLatvianAnalyzer {
type: 'latvian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisLengthTokenFilter extends AnalysisTokenFilterBase {
type: 'length'
max?: integer
@ -4585,6 +4767,13 @@ export interface AnalysisLimitTokenCountTokenFilter extends AnalysisTokenFilterB
max_token_count?: SpecUtilsStringified<integer>
}
export interface AnalysisLithuanianAnalyzer {
type: 'lithuanian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisLowercaseNormalizer {
type: 'lowercase'
}
@ -4650,6 +4839,13 @@ export interface AnalysisNoriTokenizer extends AnalysisTokenizerBase {
export type AnalysisNormalizer = AnalysisLowercaseNormalizer | AnalysisCustomNormalizer
export interface AnalysisNorwegianAnalyzer {
type: 'norwegian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisPathHierarchyTokenizer extends AnalysisTokenizerBase {
type: 'path_hierarchy'
buffer_size?: SpecUtilsStringified<integer>
@ -4696,6 +4892,12 @@ export interface AnalysisPatternTokenizer extends AnalysisTokenizerBase {
pattern?: string
}
export interface AnalysisPersianAnalyzer {
type: 'persian'
stopwords?: AnalysisStopWords
stopwords_path?: string
}
export type AnalysisPhoneticEncoder = 'metaphone' | 'double_metaphone' | 'soundex' | 'refined_soundex' | 'caverphone1' | 'caverphone2' | 'cologne' | 'nysiis' | 'koelnerphonetik' | 'haasephonetik' | 'beider_morse' | 'daitch_mokotoff'
export type AnalysisPhoneticLanguage = 'any' | 'common' | 'cyrillic' | 'english' | 'french' | 'german' | 'hebrew' | 'hungarian' | 'polish' | 'romanian' | 'russian' | 'spanish'
@ -4718,6 +4920,13 @@ export interface AnalysisPorterStemTokenFilter extends AnalysisTokenFilterBase {
type: 'porter_stem'
}
export interface AnalysisPortugueseAnalyzer {
type: 'portuguese'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisPredicateTokenFilter extends AnalysisTokenFilterBase {
type: 'predicate_token_filter'
script: Script | string
@ -4731,6 +4940,27 @@ export interface AnalysisReverseTokenFilter extends AnalysisTokenFilterBase {
type: 'reverse'
}
export interface AnalysisRomanianAnalyzer {
type: 'romanian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisRussianAnalyzer {
type: 'russian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisSerbianAnalyzer {
type: 'serbian'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisShingleTokenFilter extends AnalysisTokenFilterBase {
type: 'shingle'
filler_token?: string
@ -4760,6 +4990,20 @@ export interface AnalysisSnowballTokenFilter extends AnalysisTokenFilterBase {
language?: AnalysisSnowballLanguage
}
export interface AnalysisSoraniAnalyzer {
type: 'sorani'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisSpanishAnalyzer {
type: 'spanish'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisStandardAnalyzer {
type: 'standard'
max_token_length?: integer
@ -4800,6 +5044,13 @@ export interface AnalysisStopTokenFilter extends AnalysisTokenFilterBase {
export type AnalysisStopWords = string | string[]
export interface AnalysisSwedishAnalyzer {
type: 'swedish'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export type AnalysisSynonymFormat = 'solr' | 'wordnet'
export interface AnalysisSynonymGraphTokenFilter extends AnalysisTokenFilterBase {
@ -4826,6 +5077,12 @@ export interface AnalysisSynonymTokenFilter extends AnalysisTokenFilterBase {
updateable?: boolean
}
export interface AnalysisThaiAnalyzer {
type: 'thai'
stopwords?: AnalysisStopWords
stopwords_path?: string
}
export type AnalysisTokenChar = 'letter' | 'digit' | 'whitespace' | 'punctuation' | 'symbol' | 'custom'
export type AnalysisTokenFilter = string | AnalysisTokenFilterDefinition
@ -4853,6 +5110,13 @@ export interface AnalysisTruncateTokenFilter extends AnalysisTokenFilterBase {
length?: integer
}
export interface AnalysisTurkishAnalyzer {
type: 'turkish'
stopwords?: AnalysisStopWords
stopwords_path?: string
stem_exclusion?: string[]
}
export interface AnalysisUaxEmailUrlTokenizer extends AnalysisTokenizerBase {
type: 'uax_url_email'
max_token_length?: integer
@ -10431,6 +10695,7 @@ export interface IndicesCacheQueries {
export interface IndicesDataStream {
_meta?: Metadata
allow_custom_routing?: boolean
failure_store?: IndicesFailureStore
generation: integer
hidden: boolean
ilm_policy?: Name
@ -10440,6 +10705,7 @@ export interface IndicesDataStream {
lifecycle?: IndicesDataStreamLifecycleWithRollover
name: DataStreamName
replicated?: boolean
rollover_on_write: boolean
status: HealthStatus
system?: boolean
template: Name
@ -10450,8 +10716,8 @@ export interface IndicesDataStreamIndex {
index_name: IndexName
index_uuid: Uuid
ilm_policy?: Name
managed_by: IndicesManagedBy
prefer_ilm: boolean
managed_by?: IndicesManagedBy
prefer_ilm?: boolean
}
export interface IndicesDataStreamLifecycle {
@ -10499,6 +10765,12 @@ export interface IndicesDownsamplingRound {
config: IndicesDownsampleConfig
}
export interface IndicesFailureStore {
enabled: boolean
indices: IndicesDataStreamIndex[]
rollover_on_write: boolean
}
export interface IndicesFielddataFrequencyFilter {
max: double
min: double
@ -13924,7 +14196,7 @@ export interface MlPerPartitionCategorization {
stop_on_warn?: boolean
}
export type MlPredictedValue = string | double | boolean | integer
export type MlPredictedValue = ScalarValue | ScalarValue[]
export interface MlQuestionAnsweringInferenceOptions {
num_top_classes?: integer
@ -16049,13 +16321,6 @@ export interface NodesGetRepositoriesMeteringInfoResponseBase extends NodesNodes
nodes: Record<string, NodesRepositoryMeteringInformation>
}
export interface NodesHotThreadsHotThread {
hosts: Host[]
node_id: Id
node_name: Name
threads: string[]
}
export interface NodesHotThreadsRequest extends RequestBase {
node_id?: NodeIds
ignore_idle_threads?: boolean
@ -16069,7 +16334,6 @@ export interface NodesHotThreadsRequest extends RequestBase {
}
export interface NodesHotThreadsResponse {
hot_threads: NodesHotThreadsHotThread[]
}
export interface NodesInfoDeprecationIndexing {
@ -16510,7 +16774,7 @@ export interface QueryRulesQueryRuleCriteria {
export type QueryRulesQueryRuleCriteriaType = 'global' | 'exact' | 'exact_fuzzy' | 'fuzzy' | 'prefix' | 'suffix' | 'contains' | 'lt' | 'lte' | 'gt' | 'gte' | 'always'
export type QueryRulesQueryRuleType = 'pinned'
export type QueryRulesQueryRuleType = 'pinned' | 'exclude'
export interface QueryRulesQueryRuleset {
ruleset_id: Id