---
type: api
title: Simulate data ingestion
description: Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index.
url: https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-simulate-ingest
resource: https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-simulate-ingest
products:
  - Elasticsearch
---

# Simulate data ingestion

Authentication: required

Availability: Preview since 8.12

## Paths

- `POST` (also `GET`) `/_ingest/{index}/_simulate`
- `POST` (also `GET`) `/_ingest/_simulate`

#### Path parameters

- `index` (string) — optional, leave it out to use `/_ingest/_simulate`
  The index to simulate ingesting into.
This value can be overridden by specifying an index on each document.
If you specify this parameter in the request path, it is used for any documents that do not explicitly specify an index argument.

## Description

Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index.

This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch.

The API runs the default and final pipeline for that index against a set of documents provided in the body of the request.
If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would.
No data is indexed into Elasticsearch.
Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation.
The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result.

This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline.
The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index.

By default, the pipeline definitions that are currently in the system are used.
However, you can supply substitute pipeline definitions in the body of the request.
These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request.

## Required privileges

- Index privileges: `index`

## Query string parameters

- `pipeline` (string) — optional
  The pipeline to use as the default pipeline.
This value can be used to override the default pipeline of the index.

## Request body

`application/json`

- `docs` (object[]) — required
  Sample documents to test in the pipeline.
  - `_id` (string) — optional
    Unique identifier for the document.
This ID must be unique within the `_index`.
  - `_index` (string) — optional
    Name of the index containing the document.
  - `_source` (object) — required
    JSON body for the document.
- `component_template_substitutions` (map string to object) — optional
  A map of component template names to substitute component template definition objects.
  Map values (object)
  - `template` (object) — required
    - `_meta` (object) — optional
    - `version` (number) — optional
    - `settings` (map string to object) — optional
      Map values (object)
      - `index` (object) — optional — recursive
      - `mode` (string) — optional
      - `routing_path` (union string | string[]) — optional
      - `soft_deletes` (object) — optional
        - `enabled` (boolean · default: true) — optional
          Indicates whether soft deletes are enabled on the index.
        - `retention_lease` (object) — optional
          The maximum period to retain a shard history retention lease before it is considered expired.
Shard history retention leases ensure that soft deletes are retained during merges on the Lucene
index. If a soft delete is merged away before it can be replicated to a follower the following
process will fail due to incomplete history on the leader.
          - `period` (union oneOf) — required
            Values: `-1`, `0`
      - `sort` (object) — optional
        - `field` (union oneOf) — optional
          One of: `string[]` or `string`
        - `order` (union enum | enum[]) — optional
          

Supported values include: `asc` (or `ASC`), `desc` (or `DESC`)
          Values: `asc`, `ASC`, `desc`, `DESC`
        - `mode` (union enum | enum[]) — optional
          

Supported values include: `min` (or `MIN`), `max` (or `MAX`)
          Values: `min`, `MIN`, `max`, `MAX`
        - `missing` (union enum | enum[]) — optional
          

Supported values include: `_last`, `_first`
          Values: `_last`, `_first`
      - `number_of_shards` (number | string · default: 1) — optional
      - `number_of_replicas` (number | string · default: 0) — optional
      - `number_of_routing_shards` (number) — optional
      - `check_on_startup` (enum · default: false) — optional
        Values: `true`, `false`, `checksum`
      - `codec` (string · default: LZ4) — optional
      - `routing_partition_size` (number | string · default: 1) — optional
      - `load_fixed_bitset_filters_eagerly` (boolean · default: true) — optional
      - `hidden` (boolean | string · default: false) — optional
      - `auto_expand_replicas` (union string · default: false) — optional — nullable
      - `merge` (object) — optional
        - `scheduler` (object) — optional
          - `max_thread_count` (number | string) — optional
          - `max_merge_count` (number | string) — optional
      - `search` (object) — optional
        - `idle` (object) — optional
          - `after` (union oneOf · default: 30s) — optional
            Values: `-1`, `0`
        - `slowlog` (object) — optional
          - `level` (string) — optional
          - `source` (number) — optional
          - `reformat` (boolean) — optional
          - `threshold` (object) — optional
            - `query` (object) — optional
              - `warn` (union oneOf) — optional
                Values: `-1`, `0`
              - `info` (union oneOf) — optional
                Values: `-1`, `0`
              - `debug` (union oneOf) — optional
                Values: `-1`, `0`
              - `trace` (union oneOf) — optional
                Values: `-1`, `0`
            - `fetch` (object) — optional
              - `warn` (union oneOf) — optional
                Values: `-1`, `0`
              - `info` (union oneOf) — optional
                Values: `-1`, `0`
              - `debug` (union oneOf) — optional
                Values: `-1`, `0`
              - `trace` (union oneOf) — optional
                Values: `-1`, `0`
      - `refresh_interval` (union oneOf · default: 1s) — optional
        Values: `-1`, `0`
      - `max_result_window` (number | string · default: 10000) — optional
      - `max_inner_result_window` (number · default: 100) — optional
      - `max_rescore_window` (number · default: 10000) — optional
      - `max_docvalue_fields_search` (number · default: 100) — optional
      - `max_script_fields` (number · default: 32) — optional
      - `max_ngram_diff` (number · default: 1) — optional
      - `max_shingle_diff` (number · default: 3) — optional
      - `blocks` (object) — optional
        - `read_only` (boolean | string) — optional
        - `read_only_allow_delete` (boolean | string) — optional
        - `read` (boolean | string) — optional
        - `write` (boolean | string) — optional
        - `metadata` (boolean | string) — optional
      - `max_refresh_listeners` (number) — optional
      - `analyze` (object) — optional
        Settings to define analyzers, tokenizers, token filters and character filters.
        - `max_token_count` (number | string · default: 10000) — optional
      - `highlight` (object) — optional
        - `max_analyzed_offset` (number · default: 1000000) — optional
      - `max_terms_count` (number · default: 65536) — optional
      - `max_regex_length` (number · default: 1000) — optional
      - `routing` (object) — optional
        - `allocation` (object) — optional
          - `enable` (enum) — optional
            Values: `all`, `primaries`, `new_primaries`, `none`
          - `include` (object) — optional
            - `_tier_preference` (string) — optional
            - `_id` (string) — optional
          - `require` (object) — optional
            Assign the index to a node whose attribute has all of the given values.
Each key is a node attribute: one of the built-in attributes `_name`, `_host_ip`, `_publish_ip`, `_ip`, `_host`, `_id` and `_tier`, or a custom node attribute.
Each value is a comma-separated string or an array of strings, and can use wildcards.
          - `initial_recovery` (object) — optional
            - `_id` (string) — optional
          - `disk` (object) — optional
            - `threshold_enabled` (boolean | string) — optional
        - `rebalance` (object) — optional
          - `enable` (enum) — required
            Values: `all`, `primaries`, `replicas`, `none`
      - `unassigned` (object) — optional
        - `node_left` (object) — optional
          - `delayed_timeout` (union oneOf · default: 1m) — optional
            The amount of time to wait for a node that has left before assuming its
shards are permanently missing and starting to allocate replacement replicas.
            Values: `-1`, `0`
      - `gc_deletes` (union oneOf · default: 60s) — optional
        Values: `-1`, `0`
      - `default_pipeline` (string · default: _none) — optional
      - `final_pipeline` (string · default: _none) — optional
      - `lifecycle` (object) — optional
        - `name` (string) — optional
          The name of the policy to use to manage the index. For information about how Elasticsearch applies policy changes, see Policy updates.
        - `indexing_complete` (boolean | string · default: false) — optional
          Indicates whether or not the index has been rolled over. Automatically set to true when ILM completes the rollover action.
You can explicitly set it to skip rollover.
        - `origination_date` (number · default: 0) — optional
          If specified, this is the timestamp used to calculate the index age for its phase transitions. Use this setting
if you create a new index that contains old data and want to use the original creation date to calculate the index
age. Specified as a Unix epoch value in milliseconds.
        - `parse_origination_date` (boolean) — optional
          Set to true to parse the origination date from the index name. This origination date is used to calculate the index age
for its phase transitions. The index name must match the pattern ^.*-{date_format}-\\d+, where the date_format is
yyyy.MM.dd and the trailing digits are optional. An index that was rolled over would normally match the full format,
for example logs-2016.10.31-000002). If the index name doesn’t match the pattern, index creation fails.
        - `step` (object) — optional
          - `wait_time_threshold` (union oneOf) — optional
            Time to wait for the cluster to resolve allocation issues during an ILM shrink action. Must be greater than 1h (1 hour).
See Shard allocation for shrink.
            Values: `-1`, `0`
        - `rollover_alias` (string) — optional
          The index alias to update when the index rolls over. Specify when using a policy that contains a rollover action.
When the index rolls over, the alias is updated to reflect that the index is no longer the write index. For more
information about rolling indices, see Rollover.
        - `prefer_ilm` (boolean | string · default: true) — optional
          Preference for the system that manages a data stream backing index (preferring ILM when both ILM and DLM are
applicable for an index).
      - `provided_name` (string) — optional
      - `creation_date` (union oneOf) — optional
        One of: `number` or `string`
      - `creation_date_string` (union oneOf) — optional
        One of: `string` or `number`
      - `uuid` (string) — optional
      - `version` (object) — optional
        - `created` (string) — optional
        - `created_string` (string) — optional
      - `verified_before_close` (boolean | string) — optional
      - `format` (number | string) — optional
      - `max_slices_per_scroll` (number) — optional
      - `translog` (object) — optional
        - `sync_interval` (union oneOf · default: 5s) — optional
          How often the translog is fsynced to disk and committed, regardless of write operations.
Values less than 100ms are not allowed.
          Values: `-1`, `0`
        - `durability` (enum · default: string) — optional
          Whether or not to `fsync` and commit the translog after every index, delete, update, or bulk request.

Supported values include:
  - `request` (or `REQUEST`): (default) fsync and commit after every request. In the event of hardware failure, all acknowledged writes
will already have been committed to disk.
  - `async` (or `ASYNC`): fsync and commit in the background every sync_interval. In the event of a failure, all acknowledged writes
since the last automatic commit will be discarded.
          Values: `request`, `REQUEST`, `async`, `ASYNC`
        - `flush_threshold_size` (number | string · default: 512mb) — optional
          The translog stores all operations that are not yet safely persisted in Lucene (i.e., are not
part of a Lucene commit point). Although these operations are available for reads, they will need
to be replayed if the shard was stopped and had to be recovered. This setting controls the
maximum total size of these operations, to prevent recoveries from taking too long. Once the
maximum size has been reached a flush will happen, generating a new Lucene commit point.
        - `retention` (object) — optional
          - `size` (number | string · default: 512mb) — optional
            This controls the total size of translog files to keep for each shard. Keeping more translog files increases
the chance of performing an operation based sync when recovering a replica. If the translog files are not
sufficient, replica recovery will fall back to a file based sync. This setting is ignored, and should not be
set, if soft deletes are enabled. Soft deletes are enabled by default in indices created in Elasticsearch
versions 7.0.0 and later.
          - `age` (union oneOf · default: 12h) — optional
            This controls the maximum duration for which translog files are kept by each shard. Keeping more
translog files increases the chance of performing an operation based sync when recovering replicas. If
the translog files are not sufficient, replica recovery will fall back to a file based sync. This setting
is ignored, and should not be set, if soft deletes are enabled. Soft deletes are enabled by default in
indices created in Elasticsearch versions 7.0.0 and later.
            Values: `-1`, `0`
      - `query_string` (object) — optional
        - `lenient` (boolean | string) — required
      - `priority` (number | string) — optional
      - `top_metrics_max_size` (number) — optional
      - `analysis` (object) — optional
        - `analyzer` (map string to oneOf) — optional
          Map values (union oneOf)
          One of:
          - **type: custom** (`type: custom`)
            - `type` (enum) — required
              Values: `custom`
            - `char_filter` (union string | string[]) — optional
            - `filter` (union string | string[]) — optional
            - `position_increment_gap` (number) — optional
            - `position_offset_gap` (number) — optional
            - `tokenizer` (string) — required
          - **type: fingerprint** (`type: fingerprint`)
            - `type` (enum) — required
              Values: `fingerprint`
            - `version` (string) — optional
            - `max_output_size` (number) — required
            - `preserve_original` (boolean) — required
            - `separator` (string) — required
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
          - **type: keyword** (`type: keyword`)
            - `type` (enum) — required
              Values: `keyword`
            - `version` (string) — optional
          - **type: nori** (`type: nori`)
            - `type` (enum) — required
              Values: `nori`
            - `version` (string) — optional
            - `decompound_mode` (enum) — optional
              Values: `discard`, `none`, `mixed`
            - `stoptags` (string[]) — optional
            - `user_dictionary` (string) — optional
          - **type: pattern** (`type: pattern`)
            - `type` (enum) — required
              Values: `pattern`
            - `version` (string) — optional
            - `flags` (string) — optional
            - `lowercase` (boolean) — optional
            - `pattern` (string) — required
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
          - **type: simple** (`type: simple`)
            - `type` (enum) — required
              Values: `simple`
            - `version` (string) — optional
          - **type: standard** (`type: standard`)
            - `type` (enum) — required
              Values: `standard`
            - `max_token_length` (number) — optional
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
          - **type: stop** (`type: stop`)
            - `type` (enum) — required
              Values: `stop`
            - `version` (string) — optional
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
          - **type: whitespace** (`type: whitespace`)
            - `type` (enum) — required
              Values: `whitespace`
            - `version` (string) — optional
          - **type: icu_analyzer** (`type: icu_analyzer`)
            - `type` (enum) — required
              Values: `icu_analyzer`
            - `method` (enum) — required
              Values: `nfc`, `nfkc`, `nfkc_cf`
            - `mode` (enum) — required
              Values: `decompose`, `compose`
          - **type: kuromoji** (`type: kuromoji`)
            - `type` (enum) — required
              Values: `kuromoji`
            - `mode` (enum) — optional
              Values: `normal`, `search`, `extended`
            - `user_dictionary` (string) — optional
          - **type: snowball** (`type: snowball`)
            - `type` (enum) — required
              Values: `snowball`
            - `version` (string) — optional
            - `language` (enum) — required
              Values: `Arabic`, `Armenian`, `Basque`, `Catalan`, `Danish`, `Dutch`, `English`, `Estonian`, `Finnish`, `French`, `German`, `German2`, `Hungarian`, `Italian`, `Irish`, `Kp`, `Lithuanian`, `Lovins`, `Norwegian`, `Porter`, `Portuguese`, `Romanian`, `Russian`, `Serbian`, `Spanish`, `Swedish`, `Turkish`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
          - **type: arabic** (`type: arabic`)
            - `type` (enum) — required
              Values: `arabic`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: armenian** (`type: armenian`)
            - `type` (enum) — required
              Values: `armenian`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: basque** (`type: basque`)
            - `type` (enum) — required
              Values: `basque`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: bengali** (`type: bengali`)
            - `type` (enum) — required
              Values: `bengali`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: brazilian** (`type: brazilian`)
            - `type` (enum) — required
              Values: `brazilian`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
          - **type: bulgarian** (`type: bulgarian`)
            - `type` (enum) — required
              Values: `bulgarian`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: catalan** (`type: catalan`)
            - `type` (enum) — required
              Values: `catalan`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: chinese** (`type: chinese`)
            - `type` (enum) — required
              Values: `chinese`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
          - **type: cjk** (`type: cjk`)
            - `type` (enum) — required
              Values: `cjk`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
          - **type: czech** (`type: czech`)
            - `type` (enum) — required
              Values: `czech`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: danish** (`type: danish`)
            - `type` (enum) — required
              Values: `danish`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
          - **type: dutch** (`type: dutch`)
            - `type` (enum) — required
              Values: `dutch`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: english** (`type: english`)
            - `type` (enum) — required
              Values: `english`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: estonian** (`type: estonian`)
            - `type` (enum) — required
              Values: `estonian`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
          - **type: finnish** (`type: finnish`)
            - `type` (enum) — required
              Values: `finnish`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: french** (`type: french`)
            - `type` (enum) — required
              Values: `french`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: galician** (`type: galician`)
            - `type` (enum) — required
              Values: `galician`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: german** (`type: german`)
            - `type` (enum) — required
              Values: `german`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: greek** (`type: greek`)
            - `type` (enum) — required
              Values: `greek`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
          - **type: hindi** (`type: hindi`)
            - `type` (enum) — required
              Values: `hindi`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: hungarian** (`type: hungarian`)
            - `type` (enum) — required
              Values: `hungarian`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: indonesian** (`type: indonesian`)
            - `type` (enum) — required
              Values: `indonesian`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: irish** (`type: irish`)
            - `type` (enum) — required
              Values: `irish`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: italian** (`type: italian`)
            - `type` (enum) — required
              Values: `italian`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: latvian** (`type: latvian`)
            - `type` (enum) — required
              Values: `latvian`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: lithuanian** (`type: lithuanian`)
            - `type` (enum) — required
              Values: `lithuanian`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: norwegian** (`type: norwegian`)
            - `type` (enum) — required
              Values: `norwegian`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: persian** (`type: persian`)
            - `type` (enum) — required
              Values: `persian`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
          - **type: portuguese** (`type: portuguese`)
            - `type` (enum) — required
              Values: `portuguese`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: romanian** (`type: romanian`)
            - `type` (enum) — required
              Values: `romanian`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: russian** (`type: russian`)
            - `type` (enum) — required
              Values: `russian`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: serbian** (`type: serbian`)
            - `type` (enum) — required
              Values: `serbian`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: sorani** (`type: sorani`)
            - `type` (enum) — required
              Values: `sorani`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: spanish** (`type: spanish`)
            - `type` (enum) — required
              Values: `spanish`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: swedish** (`type: swedish`)
            - `type` (enum) — required
              Values: `swedish`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: turkish** (`type: turkish`)
            - `type` (enum) — required
              Values: `turkish`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
            - `stem_exclusion` (string[]) — optional
          - **type: thai** (`type: thai`)
            - `type` (enum) — required
              Values: `thai`
            - `stopwords` (union oneOf) — optional
              Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - `stopwords_path` (string) — optional
        - `char_filter` (map string to oneOf) — optional
          Map values (union oneOf)
          One of:
          - **string**
          - **CharFilterDefinition**
            One of:
            - **type: html_strip** (`type: html_strip`)
              - `type` (enum) — required
                Values: `html_strip`
              - `version` (string) — optional
              - `escaped_tags` (string[]) — optional
            - **type: mapping** (`type: mapping`)
              - `type` (enum) — required
                Values: `mapping`
              - `version` (string) — optional
              - `mappings` (string[]) — optional
              - `mappings_path` (string) — optional
            - **type: pattern_replace** (`type: pattern_replace`)
              - `type` (enum) — required
                Values: `pattern_replace`
              - `version` (string) — optional
              - `flags` (string) — optional
              - `pattern` (string) — required
              - `replacement` (string) — optional
            - **type: icu_normalizer** (`type: icu_normalizer`)
              - `type` (enum) — required
                Values: `icu_normalizer`
              - `version` (string) — optional
              - `mode` (enum) — optional
                Values: `decompose`, `compose`
              - `name` (enum) — optional
                Values: `nfc`, `nfkc`, `nfkc_cf`
              - `unicode_set_filter` (string) — optional
            - **type: kuromoji_iteration_mark** (`type: kuromoji_iteration_mark`)
              - `type` (enum) — required
                Values: `kuromoji_iteration_mark`
              - `version` (string) — optional
              - `normalize_kana` (boolean) — required
              - `normalize_kanji` (boolean) — required
        - `filter` (map string to oneOf) — optional
          Map values (union oneOf)
          One of:
          - **string**
          - **TokenFilterDefinition**
            One of:
            - **type: apostrophe** (`type: apostrophe`)
              - `type` (enum) — required
                Values: `apostrophe`
              - `version` (string) — optional
            - **type: arabic_stem** (`type: arabic_stem`)
              - `type` (enum) — required
                Values: `arabic_stem`
              - `version` (string) — optional
            - **type: arabic_normalization** (`type: arabic_normalization`)
              - `type` (enum) — required
                Values: `arabic_normalization`
              - `version` (string) — optional
            - **type: asciifolding** (`type: asciifolding`)
              - `type` (enum) — required
                Values: `asciifolding`
              - `version` (string) — optional
              - `preserve_original` (boolean | string) — optional
                If `true`, emit both original tokens and folded tokens. Defaults to `false`.
            - **type: bengali_normalization** (`type: bengali_normalization`)
              - `type` (enum) — required
                Values: `bengali_normalization`
              - `version` (string) — optional
            - **type: brazilian_stem** (`type: brazilian_stem`)
              - `type` (enum) — required
                Values: `brazilian_stem`
              - `version` (string) — optional
            - **type: cjk_bigram** (`type: cjk_bigram`)
              - `type` (enum) — required
                Values: `cjk_bigram`
              - `version` (string) — optional
              - `ignored_scripts` (enum[]) — optional
                Array of character scripts for which to disable bigrams.
                Values: `han`, `hangul`, `hiragana`, `katakana`
              - `output_unigrams` (boolean) — optional
                If `true`, emit tokens in both bigram and unigram form. If `false`, a CJK character is output in unigram form when it has no adjacent characters. Defaults to `false`.
            - **type: cjk_width** (`type: cjk_width`)
              - `type` (enum) — required
                Values: `cjk_width`
              - `version` (string) — optional
            - **type: classic** (`type: classic`)
              - `type` (enum) — required
                Values: `classic`
              - `version` (string) — optional
            - **type: common_grams** (`type: common_grams`)
              - `type` (enum) — required
                Values: `common_grams`
              - `version` (string) — optional
              - `common_words` (string[]) — optional
                A list of tokens. The filter generates bigrams for these tokens.
Either this or the `common_words_path` parameter is required.
              - `common_words_path` (string) — optional
                Path to a file containing a list of tokens. The filter generates bigrams for these tokens.
This path must be absolute or relative to the `config` location. The file must be UTF-8 encoded. Each token in the file must be separated by a line break.
Either this or the `common_words` parameter is required.
              - `ignore_case` (boolean) — optional
                If `true`, matches for common words matching are case-insensitive. Defaults to `false`.
              - `query_mode` (boolean) — optional
                If `true`, the filter excludes the following tokens from the output:
- Unigrams for common words
- Unigrams for terms followed by common words
Defaults to `false`. We recommend enabling this parameter for search analyzers.
            - **type: condition** (`type: condition`)
              - `type` (enum) — required
                Values: `condition`
              - `version` (string) — optional
              - `filter` (string[]) — required
                Array of token filters. If a token matches the predicate script in the `script` parameter, these filters are applied to the token in the order provided.
              - `script` (string) — required
                Predicate script used to apply token filters. If a token matches this script, the filters in the `filter` parameter are applied to the token.
            - **type: czech_stem** (`type: czech_stem`)
              - `type` (enum) — required
                Values: `czech_stem`
              - `version` (string) — optional
            - **type: decimal_digit** (`type: decimal_digit`)
              - `type` (enum) — required
                Values: `decimal_digit`
              - `version` (string) — optional
            - **type: delimited_payload** (`type: delimited_payload`)
              - `type` (enum) — required
                Values: `delimited_payload`
              - `version` (string) — optional
              - `delimiter` (string) — optional
                Character used to separate tokens from payloads. Defaults to `|`.
              - `encoding` (enum) — optional
                Data type for the stored payload.
                Values: `int`, `float`, `identity`
            - **type: dutch_stem** (`type: dutch_stem`)
              - `type` (enum) — required
                Values: `dutch_stem`
              - `version` (string) — optional
            - **type: edge_ngram** (`type: edge_ngram`)
              - `type` (enum) — required
                Values: `edge_ngram`
              - `version` (string) — optional
              - `max_gram` (number) — optional
                Maximum character length of a gram. For custom token filters, defaults to `2`. For the built-in edge_ngram filter, defaults to `1`.
              - `min_gram` (number) — optional
                Minimum character length of a gram. Defaults to `1`.
              - `side` (enum) — optional
                Indicates whether to truncate tokens from the `front` or `back`. Defaults to `front`.
                Values: `front`, `back`
              - `preserve_original` (boolean | string) — optional
                Emits original token when set to `true`. Defaults to `false`.
            - **type: elision** (`type: elision`)
              - `type` (enum) — required
                Values: `elision`
              - `version` (string) — optional
              - `articles` (string[]) — optional
                List of elisions to remove.
To be removed, the elision must be at the beginning of a token and be immediately followed by an apostrophe. Both the elision and apostrophe are removed.
For custom `elision` filters, either this parameter or `articles_path` must be specified.
              - `articles_path` (string) — optional
                Path to a file that contains a list of elisions to remove.
This path must be absolute or relative to the `config` location, and the file must be UTF-8 encoded. Each elision in the file must be separated by a line break.
To be removed, the elision must be at the beginning of a token and be immediately followed by an apostrophe. Both the elision and apostrophe are removed.
For custom `elision` filters, either this parameter or `articles` must be specified.
              - `articles_case` (boolean | string) — optional
                If `true`, elision matching is case insensitive. If `false`, elision matching is case sensitive. Defaults to `false`.
            - **type: fingerprint** (`type: fingerprint`)
              - `type` (enum) — required
                Values: `fingerprint`
              - `version` (string) — optional
              - `max_output_size` (number) — optional
                Maximum character length, including whitespace, of the output token. Defaults to `255`. Concatenated tokens longer than this will result in no token output.
              - `separator` (string) — optional
                Character to use to concatenate the token stream input. Defaults to a space.
            - **type: flatten_graph** (`type: flatten_graph`)
              - `type` (enum) — required
                Values: `flatten_graph`
              - `version` (string) — optional
            - **type: french_stem** (`type: french_stem`)
              - `type` (enum) — required
                Values: `french_stem`
              - `version` (string) — optional
            - **type: german_normalization** (`type: german_normalization`)
              - `type` (enum) — required
                Values: `german_normalization`
              - `version` (string) — optional
            - **type: german_stem** (`type: german_stem`)
              - `type` (enum) — required
                Values: `german_stem`
              - `version` (string) — optional
            - **type: hindi_normalization** (`type: hindi_normalization`)
              - `type` (enum) — required
                Values: `hindi_normalization`
              - `version` (string) — optional
            - **type: hunspell** (`type: hunspell`)
              - `type` (enum) — required
                Values: `hunspell`
              - `version` (string) — optional
              - `dedup` (boolean) — optional
                If `true`, duplicate tokens are removed from the filter’s output. Defaults to `true`.
              - `dictionary` (string) — optional
                One or more `.dic` files (e.g, `en_US.dic`, my_custom.dic) to use for the Hunspell dictionary.
By default, the `hunspell` filter uses all `.dic` files in the `<$ES_PATH_CONF>/hunspell/<locale>` directory specified using the `lang`, `language`, or `locale` parameter.
              - `locale` (string) — required
                Locale directory used to specify the `.aff` and `.dic` files for a Hunspell dictionary.
              - `longest_only` (boolean) — optional
                If `true`, only the longest stemmed version of each token is included in the output. If `false`, all stemmed versions of the token are included. Defaults to `false`.
            - **type: hyphenation_decompounder** (`type: hyphenation_decompounder`)
              - `type` (enum) — required
                Values: `hyphenation_decompounder`
              - `version` (string) — optional
              - `max_subword_size` (number) — optional
                Maximum subword character length. Longer subword tokens are excluded from the output. Defaults to `15`.
              - `min_subword_size` (number) — optional
                Minimum subword character length. Shorter subword tokens are excluded from the output. Defaults to `2`.
              - `min_word_size` (number) — optional
                Minimum word character length. Shorter word tokens are excluded from the output. Defaults to `5`.
              - `only_longest_match` (boolean) — optional
                If `true`, only include the longest matching subword. Defaults to `false`.
              - `word_list` (string[]) — optional
                A list of subwords to look for in the token stream. If found, the subword is included in the token output.
Either this parameter or `word_list_path` must be specified.
              - `word_list_path` (string) — optional
                Path to a file that contains a list of subwords to find in the token stream. If found, the subword is included in the token output.
This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each token in the file must be separated by a line break.
Either this parameter or `word_list` must be specified.
              - `hyphenation_patterns_path` (string) — required
                Path to an Apache FOP (Formatting Objects Processor) XML hyphenation pattern file.
This path must be absolute or relative to the `config` location. Only FOP v1.2 compatible files are supported.
              - `no_sub_matches` (boolean) — optional
                If `true`, do not match sub tokens in tokens that are in the word list. Defaults to `false`.
              - `no_overlapping_matches` (boolean) — optional
                If `true`, do not allow overlapping tokens. Defaults to `false`.
            - **type: indic_normalization** (`type: indic_normalization`)
              - `type` (enum) — required
                Values: `indic_normalization`
              - `version` (string) — optional
            - **type: keep_types** (`type: keep_types`)
              - `type` (enum) — required
                Values: `keep_types`
              - `version` (string) — optional
              - `mode` (enum) — optional
                Indicates whether to keep or remove the specified token types.
                Values: `include`, `exclude`
              - `types` (string[]) — required
                List of token types to keep or remove.
            - **type: keep** (`type: keep`)
              - `type` (enum) — required
                Values: `keep`
              - `version` (string) — optional
              - `keep_words` (string[]) — optional
                List of words to keep. Only tokens that match words in this list are included in the output.
Either this parameter or `keep_words_path` must be specified.
              - `keep_words_case` (boolean) — optional
                If `true`, lowercase all keep words. Defaults to `false`.
              - `keep_words_path` (string) — optional
                Path to a file that contains a list of words to keep. Only tokens that match words in this list are included in the output.
This path must be absolute or relative to the `config` location, and the file must be UTF-8 encoded. Each word in the file must be separated by a line break.
Either this parameter or `keep_words` must be specified.
            - **type: keyword_marker** (`type: keyword_marker`)
              - `type` (enum) — required
                Values: `keyword_marker`
              - `version` (string) — optional
              - `ignore_case` (boolean) — optional
                If `true`, matching for the `keywords` and `keywords_path` parameters ignores letter case. Defaults to `false`.
              - `keywords` (union string | string[]) — optional
                Array of keywords. Tokens that match these keywords are not stemmed.
This parameter, `keywords_path`, or `keywords_pattern` must be specified. You cannot specify this parameter and `keywords_pattern`.
              - `keywords_path` (string) — optional
                Path to a file that contains a list of keywords. Tokens that match these keywords are not stemmed.
This path must be absolute or relative to the `config` location, and the file must be UTF-8 encoded. Each word in the file must be separated by a line break.
This parameter, `keywords`, or `keywords_pattern` must be specified. You cannot specify this parameter and `keywords_pattern`.
              - `keywords_pattern` (string) — optional
                Java regular expression used to match tokens. Tokens that match this expression are marked as keywords and not stemmed.
This parameter, `keywords`, or `keywords_path` must be specified. You cannot specify this parameter and `keywords` or `keywords_pattern`.
            - **type: keyword_repeat** (`type: keyword_repeat`)
              - `type` (enum) — required
                Values: `keyword_repeat`
              - `version` (string) — optional
            - **type: kstem** (`type: kstem`)
              - `type` (enum) — required
                Values: `kstem`
              - `version` (string) — optional
            - **type: length** (`type: length`)
              - `type` (enum) — required
                Values: `length`
              - `version` (string) — optional
              - `max` (number) — optional
                Maximum character length of a token. Longer tokens are excluded from the output. Defaults to `Integer.MAX_VALUE`, which is `2^31-1` or `2147483647`.
              - `min` (number) — optional
                Minimum character length of a token. Shorter tokens are excluded from the output. Defaults to `0`.
            - **type: limit** (`type: limit`)
              - `type` (enum) — required
                Values: `limit`
              - `version` (string) — optional
              - `consume_all_tokens` (boolean) — optional
                If `true`, the limit filter exhausts the token stream, even if the `max_token_count` has already been reached. Defaults to `false`.
              - `max_token_count` (number | string) — optional
                Maximum number of tokens to keep. Once this limit is reached, any remaining tokens are excluded from the output. Defaults to `1`.
            - **type: lowercase** (`type: lowercase`)
              - `type` (enum) — required
                Values: `lowercase`
              - `version` (string) — optional
              - `language` (enum) — optional
                Language-specific lowercase token filter to use.
                Values: `greek`, `irish`, `turkish`
            - **type: min_hash** (`type: min_hash`)
              - `type` (enum) — required
                Values: `min_hash`
              - `version` (string) — optional
              - `bucket_count` (number) — optional
                Number of buckets to which hashes are assigned. Defaults to `512`.
              - `hash_count` (number) — optional
                Number of ways to hash each token in the stream. Defaults to `1`.
              - `hash_set_size` (number) — optional
                Number of hashes to keep from each bucket. Defaults to `1`.
Hashes are retained by ascending size, starting with the bucket’s smallest hash first.
              - `with_rotation` (boolean) — optional
                If `true`, the filter fills empty buckets with the value of the first non-empty bucket to its circular right if the `hash_set_size` is `1`. If the `bucket_count` argument is greater than 1, this parameter defaults to `true`. Otherwise, this parameter defaults to `false`.
            - **type: multiplexer** (`type: multiplexer`)
              - `type` (enum) — required
                Values: `multiplexer`
              - `version` (string) — optional
              - `filters` (string[]) — required
                A list of token filters to apply to incoming tokens.
              - `preserve_original` (boolean | string) — optional
                If `true` (the default) then emit the original token in addition to the filtered tokens.
            - **type: ngram** (`type: ngram`)
              - `type` (enum) — required
                Values: `ngram`
              - `version` (string) — optional
              - `max_gram` (number) — optional
                Maximum length of characters in a gram. Defaults to `2`.
              - `min_gram` (number) — optional
                Minimum length of characters in a gram. Defaults to `1`.
              - `preserve_original` (boolean | string) — optional
                Emits original token when set to `true`. Defaults to `false`.
            - **type: nori_part_of_speech** (`type: nori_part_of_speech`)
              - `type` (enum) — required
                Values: `nori_part_of_speech`
              - `version` (string) — optional
              - `stoptags` (string[]) — optional
                An array of part-of-speech tags that should be removed.
            - **type: pattern_capture** (`type: pattern_capture`)
              - `type` (enum) — required
                Values: `pattern_capture`
              - `version` (string) — optional
              - `patterns` (string[]) — required
                A list of regular expressions to match.
              - `preserve_original` (boolean | string) — optional
                If set to `true` (the default) it will emit the original token.
            - **type: pattern_replace** (`type: pattern_replace`)
              - `type` (enum) — required
                Values: `pattern_replace`
              - `version` (string) — optional
              - `all` (boolean) — optional
                If `true`, all substrings matching the pattern parameter’s regular expression are replaced. If `false`, the filter replaces only the first matching substring in each token. Defaults to `true`.
              - `flags` (string) — optional
              - `pattern` (string) — required
                Regular expression, written in Java’s regular expression syntax. The filter replaces token substrings matching this pattern with the substring in the `replacement` parameter.
              - `replacement` (string) — optional
                Replacement substring. Defaults to an empty substring (`""`).
            - **type: persian_normalization** (`type: persian_normalization`)
              - `type` (enum) — required
                Values: `persian_normalization`
              - `version` (string) — optional
            - **type: persian_stem** (`type: persian_stem`)
              - `type` (enum) — required
                Values: `persian_stem`
              - `version` (string) — optional
            - **type: porter_stem** (`type: porter_stem`)
              - `type` (enum) — required
                Values: `porter_stem`
              - `version` (string) — optional
            - **type: predicate_token_filter** (`type: predicate_token_filter`)
              - `type` (enum) — required
                Values: `predicate_token_filter`
              - `version` (string) — optional
              - `script` (string) — required
                Script containing a condition used to filter incoming tokens. Only tokens that match this script are included in the output.
            - **type: remove_duplicates** (`type: remove_duplicates`)
              - `type` (enum) — required
                Values: `remove_duplicates`
              - `version` (string) — optional
            - **type: reverse** (`type: reverse`)
              - `type` (enum) — required
                Values: `reverse`
              - `version` (string) — optional
            - **type: russian_stem** (`type: russian_stem`)
              - `type` (enum) — required
                Values: `russian_stem`
              - `version` (string) — optional
            - **type: scandinavian_folding** (`type: scandinavian_folding`)
              - `type` (enum) — required
                Values: `scandinavian_folding`
              - `version` (string) — optional
            - **type: scandinavian_normalization** (`type: scandinavian_normalization`)
              - `type` (enum) — required
                Values: `scandinavian_normalization`
              - `version` (string) — optional
            - **type: serbian_normalization** (`type: serbian_normalization`)
              - `type` (enum) — required
                Values: `serbian_normalization`
              - `version` (string) — optional
            - **type: shingle** (`type: shingle`)
              - `type` (enum) — required
                Values: `shingle`
              - `version` (string) — optional
              - `filler_token` (string) — optional
                String used in shingles as a replacement for empty positions that do not contain a token. This filler token is only used in shingles, not original unigrams. Defaults to an underscore (`_`).
              - `max_shingle_size` (number | string) — optional
                Maximum number of tokens to concatenate when creating shingles. Defaults to `2`.
              - `min_shingle_size` (number | string) — optional
                Minimum number of tokens to concatenate when creating shingles. Defaults to `2`.
              - `output_unigrams` (boolean) — optional
                If `true`, the output includes the original input tokens. If `false`, the output only includes shingles; the original input tokens are removed. Defaults to `true`.
              - `output_unigrams_if_no_shingles` (boolean) — optional
                If `true`, the output includes the original input tokens only if no shingles are produced; if shingles are produced, the output only includes shingles. Defaults to `false`.
              - `token_separator` (string) — optional
                Separator used to concatenate adjacent tokens to form a shingle. Defaults to a space (`" "`).
            - **type: snowball** (`type: snowball`)
              - `type` (enum) — required
                Values: `snowball`
              - `version` (string) — optional
              - `language` (enum) — optional
                Controls the language used by the stemmer.
                Values: `Arabic`, `Armenian`, `Basque`, `Catalan`, `Danish`, `Dutch`, `English`, `Estonian`, `Finnish`, `French`, `German`, `German2`, `Hungarian`, `Italian`, `Irish`, `Kp`, `Lithuanian`, `Lovins`, `Norwegian`, `Porter`, `Portuguese`, `Romanian`, `Russian`, `Serbian`, `Spanish`, `Swedish`, `Turkish`
            - **type: sorani_normalization** (`type: sorani_normalization`)
              - `type` (enum) — required
                Values: `sorani_normalization`
              - `version` (string) — optional
            - **type: stemmer_override** (`type: stemmer_override`)
              - `type` (enum) — required
                Values: `stemmer_override`
              - `version` (string) — optional
              - `rules` (string[]) — optional
                A list of mapping rules to use.
              - `rules_path` (string) — optional
                A path (either relative to `config` location, or absolute) to a list of mappings.
            - **type: stemmer** (`type: stemmer`)
              - `type` (enum) — required
                Values: `stemmer`
              - `version` (string) — optional
              - `language` (string) — optional
            - **type: stop** (`type: stop`)
              - `type` (enum) — required
                Values: `stop`
              - `version` (string) — optional
              - `ignore_case` (boolean) — optional
                If `true`, stop word matching is case insensitive. For example, if `true`, a stop word of the matches and removes `The`, `THE`, or `the`. Defaults to `false`.
              - `remove_trailing` (boolean) — optional
                If `true`, the last token of a stream is removed if it’s a stop word. Defaults to `true`.
              - `stopwords` (union oneOf) — optional
                Language value, such as `_arabic_` or `_thai_`. Defaults to `_english_`.
                Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
              - `stopwords_path` (string) — optional
                Path to a file that contains a list of stop words to remove.
This path must be absolute or relative to the `config` location, and the file must be UTF-8 encoded. Each stop word in the file must be separated by a line break.
            - **type: synonym_graph** (`type: synonym_graph`)
              - `type` (enum) — required
                Values: `synonym_graph`
              - `version` (string) — optional
              - `expand` (boolean) — optional
                Expands definitions for equivalent synonym rules. Defaults to `true`.
              - `format` (enum) — optional
                Sets the synonym rules format.
                Values: `solr`, `wordnet`
              - `lenient` (boolean) — optional
                If `true` ignores errors while parsing the synonym rules. It is important to note that only those synonym rules which cannot get parsed are ignored. Defaults to the value of the `updateable` setting.
              - `synonyms` (string[]) — optional
                Used to define inline synonyms.
              - `synonyms_path` (string) — optional
                Used to provide a synonym file. This path must be absolute or relative to the `config` location.
              - `synonyms_set` (string) — optional
                Provide a synonym set created via Synonyms Management APIs.
              - `tokenizer` (string) — optional — deprecated
                Controls the tokenizers that will be used to tokenize the synonym, this parameter is for backwards compatibility for indices that created before 6.0.
              - `updateable` (boolean) — optional
                If `true` allows reloading search analyzers to pick up changes to synonym files. Only to be used for search analyzers. Defaults to `false`.
            - **type: synonym** (`type: synonym`)
              - `type` (enum) — required
                Values: `synonym`
              - `version` (string) — optional
              - `expand` (boolean) — optional
                Expands definitions for equivalent synonym rules. Defaults to `true`.
              - `format` (enum) — optional
                Sets the synonym rules format.
                Values: `solr`, `wordnet`
              - `lenient` (boolean) — optional
                If `true` ignores errors while parsing the synonym rules. It is important to note that only those synonym rules which cannot get parsed are ignored. Defaults to the value of the `updateable` setting.
              - `synonyms` (string[]) — optional
                Used to define inline synonyms.
              - `synonyms_path` (string) — optional
                Used to provide a synonym file. This path must be absolute or relative to the `config` location.
              - `synonyms_set` (string) — optional
                Provide a synonym set created via Synonyms Management APIs.
              - `tokenizer` (string) — optional — deprecated
                Controls the tokenizers that will be used to tokenize the synonym, this parameter is for backwards compatibility for indices that created before 6.0.
              - `updateable` (boolean) — optional
                If `true` allows reloading search analyzers to pick up changes to synonym files. Only to be used for search analyzers. Defaults to `false`.
            - **type: trim** (`type: trim`)
              - `type` (enum) — required
                Values: `trim`
              - `version` (string) — optional
            - **type: truncate** (`type: truncate`)
              - `type` (enum) — required
                Values: `truncate`
              - `version` (string) — optional
              - `length` (number) — optional
                Character limit for each token. Tokens exceeding this limit are truncated. Defaults to `10`.
            - **type: unique** (`type: unique`)
              - `type` (enum) — required
                Values: `unique`
              - `version` (string) — optional
              - `only_on_same_position` (boolean) — optional
                If `true`, only remove duplicate tokens in the same position. Defaults to `false`.
            - **type: uppercase** (`type: uppercase`)
              - `type` (enum) — required
                Values: `uppercase`
              - `version` (string) — optional
            - **type: word_delimiter_graph** (`type: word_delimiter_graph`)
              - `type` (enum) — required
                Values: `word_delimiter_graph`
              - `version` (string) — optional
              - `catenate_all` (boolean) — optional
                If `true`, the filter produces catenated tokens for chains of alphanumeric characters separated by non-alphabetic delimiters. Defaults to `false`.
              - `catenate_numbers` (boolean) — optional
                If `true`, the filter produces catenated tokens for chains of numeric characters separated by non-alphabetic delimiters. Defaults to `false`.
              - `catenate_words` (boolean) — optional
                If `true`, the filter produces catenated tokens for chains of alphabetical characters separated by non-alphabetic delimiters. Defaults to `false`.
              - `generate_number_parts` (boolean) — optional
                If `true`, the filter includes tokens consisting of only numeric characters in the output. If `false`, the filter excludes these tokens from the output. Defaults to `true`.
              - `generate_word_parts` (boolean) — optional
                If `true`, the filter includes tokens consisting of only alphabetical characters in the output. If `false`, the filter excludes these tokens from the output. Defaults to `true`.
              - `preserve_original` (boolean | string) — optional
                If `true`, the filter includes the original version of any split tokens in the output. This original version includes non-alphanumeric delimiters. Defaults to `false`.
              - `protected_words` (string[]) — optional
                Array of tokens the filter won’t split.
              - `protected_words_path` (string) — optional
                Path to a file that contains a list of tokens the filter won’t split.
This path must be absolute or relative to the `config` location, and the file must be UTF-8 encoded. Each token in the file must be separated by a line break.
              - `split_on_case_change` (boolean) — optional
                If `true`, the filter splits tokens at letter case transitions. For example: camelCase -> [ camel, Case ]. Defaults to `true`.
              - `split_on_numerics` (boolean) — optional
                If `true`, the filter splits tokens at letter-number transitions. For example: j2se -> [ j, 2, se ]. Defaults to `true`.
              - `stem_english_possessive` (boolean) — optional
                If `true`, the filter removes the English possessive (`'s`) from the end of each token. For example: O'Neil's -> [ O, Neil ]. Defaults to `true`.
              - `type_table` (string[]) — optional
                Array of custom type mappings for characters. This allows you to map non-alphanumeric characters as numeric or alphanumeric to avoid splitting on those characters.
              - `type_table_path` (string) — optional
                Path to a file that contains custom type mappings for characters. This allows you to map non-alphanumeric characters as numeric or alphanumeric to avoid splitting on those characters.
              - `adjust_offsets` (boolean) — optional
                If `true`, the filter adjusts the offsets of split or catenated tokens to better reflect their actual position in the token stream. Defaults to `true`.
              - `ignore_keywords` (boolean) — optional
                If `true`, the filter skips tokens with a keyword attribute of true. Defaults to `false`.
            - **type: word_delimiter** (`type: word_delimiter`)
              - `type` (enum) — required
                Values: `word_delimiter`
              - `version` (string) — optional
              - `catenate_all` (boolean) — optional
                If `true`, the filter produces catenated tokens for chains of alphanumeric characters separated by non-alphabetic delimiters. Defaults to `false`.
              - `catenate_numbers` (boolean) — optional
                If `true`, the filter produces catenated tokens for chains of numeric characters separated by non-alphabetic delimiters. Defaults to `false`.
              - `catenate_words` (boolean) — optional
                If `true`, the filter produces catenated tokens for chains of alphabetical characters separated by non-alphabetic delimiters. Defaults to `false`.
              - `generate_number_parts` (boolean) — optional
                If `true`, the filter includes tokens consisting of only numeric characters in the output. If `false`, the filter excludes these tokens from the output. Defaults to `true`.
              - `generate_word_parts` (boolean) — optional
                If `true`, the filter includes tokens consisting of only alphabetical characters in the output. If `false`, the filter excludes these tokens from the output. Defaults to `true`.
              - `preserve_original` (boolean | string) — optional
                If `true`, the filter includes the original version of any split tokens in the output. This original version includes non-alphanumeric delimiters. Defaults to `false`.
              - `protected_words` (string[]) — optional
                Array of tokens the filter won’t split.
              - `protected_words_path` (string) — optional
                Path to a file that contains a list of tokens the filter won’t split.
This path must be absolute or relative to the `config` location, and the file must be UTF-8 encoded. Each token in the file must be separated by a line break.
              - `split_on_case_change` (boolean) — optional
                If `true`, the filter splits tokens at letter case transitions. For example: camelCase -> [ camel, Case ]. Defaults to `true`.
              - `split_on_numerics` (boolean) — optional
                If `true`, the filter splits tokens at letter-number transitions. For example: j2se -> [ j, 2, se ]. Defaults to `true`.
              - `stem_english_possessive` (boolean) — optional
                If `true`, the filter removes the English possessive (`'s`) from the end of each token. For example: O'Neil's -> [ O, Neil ]. Defaults to `true`.
              - `type_table` (string[]) — optional
                Array of custom type mappings for characters. This allows you to map non-alphanumeric characters as numeric or alphanumeric to avoid splitting on those characters.
              - `type_table_path` (string) — optional
                Path to a file that contains custom type mappings for characters. This allows you to map non-alphanumeric characters as numeric or alphanumeric to avoid splitting on those characters.
            - **type: ja_stop** (`type: ja_stop`)
              - `type` (enum) — required
                Values: `ja_stop`
              - `version` (string) — optional
              - `stopwords` (union oneOf) — optional
                Values: `_arabic_`, `_armenian_`, `_basque_`, `_bengali_`, `_brazilian_`, `_bulgarian_`, `_catalan_`, `_cjk_`, `_czech_`, `_danish_`, `_dutch_`, `_english_`, `_estonian_`, `_finnish_`, `_french_`, `_galician_`, `_german_`, `_greek_`, `_hindi_`, `_hungarian_`, `_indonesian_`, `_irish_`, `_italian_`, `_latvian_`, `_lithuanian_`, `_norwegian_`, `_persian_`, `_portuguese_`, `_romanian_`, `_russian_`, `_serbian_`, `_sorani_`, `_spanish_`, `_swedish_`, `_thai_`, `_turkish_`, `_none_`
            - **type: kuromoji_stemmer** (`type: kuromoji_stemmer`)
              - `type` (enum) — required
                Values: `kuromoji_stemmer`
              - `version` (string) — optional
              - `minimum_length` (number) — required
            - **type: kuromoji_readingform** (`type: kuromoji_readingform`)
              - `type` (enum) — required
                Values: `kuromoji_readingform`
              - `version` (string) — optional
              - `use_romaji` (boolean) — required
            - **type: kuromoji_part_of_speech** (`type: kuromoji_part_of_speech`)
              - `type` (enum) — required
                Values: `kuromoji_part_of_speech`
              - `version` (string) — optional
              - `stoptags` (string[]) — required
            - **type: icu_collation** (`type: icu_collation`)
              - `type` (enum) — required
                Values: `icu_collation`
              - `version` (string) — optional
              - `alternate` (enum) — optional
                Values: `shifted`, `non-ignorable`
              - `caseFirst` (enum) — optional
                Values: `lower`, `upper`
              - `caseLevel` (boolean) — optional
              - `country` (string) — optional
              - `decomposition` (enum) — optional
                Values: `no`, `identical`
              - `hiraganaQuaternaryMode` (boolean) — optional
              - `language` (string) — optional
              - `numeric` (boolean) — optional
              - `rules` (string) — optional
              - `strength` (enum) — optional
                Values: `primary`, `secondary`, `tertiary`, `quaternary`, `identical`
              - `variableTop` (string) — optional
              - `variant` (string) — optional
            - **type: icu_folding** (`type: icu_folding`)
              - `type` (enum) — required
                Values: `icu_folding`
              - `version` (string) — optional
              - `unicode_set_filter` (string) — required
            - **type: icu_normalizer** (`type: icu_normalizer`)
              - `type` (enum) — required
                Values: `icu_normalizer`
              - `version` (string) — optional
              - `name` (enum) — required
                Values: `nfc`, `nfkc`, `nfkc_cf`
            - **type: icu_transform** (`type: icu_transform`)
              - `type` (enum) — required
                Values: `icu_transform`
              - `version` (string) — optional
              - `dir` (enum) — optional
                Values: `forward`, `reverse`
              - `id` (string) — required
            - **type: phonetic** (`type: phonetic`)
              - `type` (enum) — required
                Values: `phonetic`
              - `version` (string) — optional
              - `encoder` (enum) — required
                Values: `metaphone`, `double_metaphone`, `soundex`, `refined_soundex`, `caverphone1`, `caverphone2`, `cologne`, `nysiis`, `koelnerphonetik`, `haasephonetik`, `beider_morse`, `daitch_mokotoff`
              - `languageset` (union enum | enum[]) — optional
                

Supported values include: `any`, `common`, `cyrillic`, `english`, `french`, `german`, `hebrew`, `hungarian`, `polish`, `romanian`, `russian`, `spanish`
                Values: `any`, `common`, `cyrillic`, `english`, `french`, `german`, `hebrew`, `hungarian`, `polish`, `romanian`, `russian`, `spanish`
              - `max_code_len` (number) — optional
              - `name_type` (enum) — optional
                Values: `generic`, `ashkenazi`, `sephardic`
              - `replace` (boolean) — optional
              - `rule_type` (enum) — optional
                Values: `approx`, `exact`
            - **type: dictionary_decompounder** (`type: dictionary_decompounder`)
              - `type` (enum) — required
                Values: `dictionary_decompounder`
              - `version` (string) — optional
              - `max_subword_size` (number) — optional
                Maximum subword character length. Longer subword tokens are excluded from the output. Defaults to `15`.
              - `min_subword_size` (number) — optional
                Minimum subword character length. Shorter subword tokens are excluded from the output. Defaults to `2`.
              - `min_word_size` (number) — optional
                Minimum word character length. Shorter word tokens are excluded from the output. Defaults to `5`.
              - `only_longest_match` (boolean) — optional
                If `true`, only include the longest matching subword. Defaults to `false`.
              - `word_list` (string[]) — optional
                A list of subwords to look for in the token stream. If found, the subword is included in the token output.
Either this parameter or `word_list_path` must be specified.
              - `word_list_path` (string) — optional
                Path to a file that contains a list of subwords to find in the token stream. If found, the subword is included in the token output.
This path must be absolute or relative to the config location, and the file must be UTF-8 encoded. Each token in the file must be separated by a line break.
Either this parameter or `word_list` must be specified.
        - `normalizer` (map string to oneOf) — optional
          Map values (union oneOf)
          One of:
          - **type: lowercase** (`type: lowercase`)
            - `type` (enum) — required
              Values: `lowercase`
          - **type: custom** (`type: custom`)
            - `type` (enum) — required
              Values: `custom`
            - `char_filter` (string[]) — optional
            - `filter` (string[]) — optional
        - `tokenizer` (map string to oneOf) — optional
          Map values (union oneOf)
          One of:
          - **string**
          - **TokenizerDefinition**
            One of:
            - **type: char_group** (`type: char_group`)
              - `type` (enum) — required
                Values: `char_group`
              - `version` (string) — optional
              - `tokenize_on_chars` (string[]) — required
              - `max_token_length` (number) — optional
            - **type: classic** (`type: classic`)
              - `type` (enum) — required
                Values: `classic`
              - `version` (string) — optional
              - `max_token_length` (number) — optional
            - **type: edge_ngram** (`type: edge_ngram`)
              - `type` (enum) — required
                Values: `edge_ngram`
              - `version` (string) — optional
              - `custom_token_chars` (string) — optional
              - `max_gram` (number) — optional
              - `min_gram` (number) — optional
              - `token_chars` (enum[] · default: []) — optional
                Values: `letter`, `digit`, `whitespace`, `punctuation`, `symbol`, `custom`
            - **type: keyword** (`type: keyword`)
              - `type` (enum) — required
                Values: `keyword`
              - `version` (string) — optional
              - `buffer_size` (number · default: 256) — optional
            - **type: letter** (`type: letter`)
              - `type` (enum) — required
                Values: `letter`
              - `version` (string) — optional
            - **type: lowercase** (`type: lowercase`)
              - `type` (enum) — required
                Values: `lowercase`
              - `version` (string) — optional
            - **type: ngram** (`type: ngram`)
              - `type` (enum) — required
                Values: `ngram`
              - `version` (string) — optional
              - `custom_token_chars` (string) — optional
              - `max_gram` (number) — optional
              - `min_gram` (number) — optional
              - `token_chars` (enum[] · default: []) — optional
                Values: `letter`, `digit`, `whitespace`, `punctuation`, `symbol`, `custom`
            - **type: path_hierarchy** (`type: path_hierarchy`)
              - `type` (enum) — required
                Values: `path_hierarchy`
              - `version` (string) — optional
              - `buffer_size` (number | string) — optional
              - `delimiter` (string) — optional
              - `replacement` (string) — optional
              - `reverse` (boolean | string) — optional
              - `skip` (number | string) — optional
            - **type: pattern** (`type: pattern`)
              - `type` (enum) — required
                Values: `pattern`
              - `version` (string) — optional
              - `flags` (string) — optional
              - `group` (number) — optional
              - `pattern` (string) — optional
            - **type: simple_pattern** (`type: simple_pattern`)
              - `type` (enum) — required
                Values: `simple_pattern`
              - `version` (string) — optional
              - `pattern` (string) — optional
            - **type: simple_pattern_split** (`type: simple_pattern_split`)
              - `type` (enum) — required
                Values: `simple_pattern_split`
              - `version` (string) — optional
              - `pattern` (string) — optional
            - **type: standard** (`type: standard`)
              - `type` (enum) — required
                Values: `standard`
              - `version` (string) — optional
              - `max_token_length` (number) — optional
            - **type: thai** (`type: thai`)
              - `type` (enum) — required
                Values: `thai`
              - `version` (string) — optional
            - **type: uax_url_email** (`type: uax_url_email`)
              - `type` (enum) — required
                Values: `uax_url_email`
              - `version` (string) — optional
              - `max_token_length` (number) — optional
            - **type: whitespace** (`type: whitespace`)
              - `type` (enum) — required
                Values: `whitespace`
              - `version` (string) — optional
              - `max_token_length` (number) — optional
            - **type: icu_tokenizer** (`type: icu_tokenizer`)
              - `type` (enum) — required
                Values: `icu_tokenizer`
              - `version` (string) — optional
              - `rule_files` (string) — required
            - **type: kuromoji_tokenizer** (`type: kuromoji_tokenizer`)
              - `type` (enum) — required
                Values: `kuromoji_tokenizer`
              - `version` (string) — optional
              - `discard_punctuation` (boolean) — optional
              - `mode` (enum) — required
                Values: `normal`, `search`, `extended`
              - `nbest_cost` (number) — optional
              - `nbest_examples` (string) — optional
              - `user_dictionary` (string) — optional
              - `user_dictionary_rules` (string[]) — optional
              - `discard_compound_token` (boolean) — optional
            - **type: nori_tokenizer** (`type: nori_tokenizer`)
              - `type` (enum) — required
                Values: `nori_tokenizer`
              - `version` (string) — optional
              - `decompound_mode` (enum) — optional
                Values: `discard`, `none`, `mixed`
              - `discard_punctuation` (boolean) — optional
              - `user_dictionary` (string) — optional
              - `user_dictionary_rules` (string[]) — optional
      - `settings` (object) — optional — recursive
      - `time_series` (object) — optional
        - `end_time` (union oneOf) — optional
          One of: `string` or `number`
        - `start_time` (union oneOf) — optional
          One of: `string` or `number`
      - `queries` (object) — optional
        - `cache` (object) — optional
          - `enabled` (boolean) — required
      - `requests` (object) — optional
        - `cache` (object) — optional
          - `enable` (boolean | string · default: true) — optional
            Whether the shard request cache is enabled for the index.
This setting is dynamic and can be updated on an existing index.
      - `similarity` (map string to oneOf) — optional
        Configure custom similarity settings to customize how search results are scored.
        Map values (union oneOf)
        One of:
        - **type: BM25** (`type: BM25`)
          - `type` (enum) — required
            Values: `BM25`
          - `b` (number) — optional
          - `discount_overlaps` (boolean) — optional
          - `k1` (number) — optional
        - **type: boolean** (`type: boolean`)
          - `type` (enum) — required
            Values: `boolean`
        - **type: DFI** (`type: DFI`)
          - `type` (enum) — required
            Values: `DFI`
          - `independence_measure` (enum) — required
            Values: `standardized`, `saturated`, `chisquared`
        - **type: DFR** (`type: DFR`)
          - `type` (enum) — required
            Values: `DFR`
          - `after_effect` (enum) — required
            Values: `no`, `b`, `l`
          - `basic_model` (enum) — required
            Values: `be`, `d`, `g`, `if`, `in`, `ine`, `p`
          - `normalization` (enum) — required
            Values: `no`, `h1`, `h2`, `h3`, `z`
        - **type: IB** (`type: IB`)
          - `type` (enum) — required
            Values: `IB`
          - `distribution` (enum) — required
            Values: `ll`, `spl`
          - `lambda` (enum) — required
            Values: `df`, `ttf`
          - `normalization` (enum) — required
            Values: `no`, `h1`, `h2`, `h3`, `z`
        - **type: LMDirichlet** (`type: LMDirichlet`)
          - `type` (enum) — required
            Values: `LMDirichlet`
          - `mu` (number) — optional
        - **type: LMJelinekMercer** (`type: LMJelinekMercer`)
          - `type` (enum) — required
            Values: `LMJelinekMercer`
          - `lambda` (number) — optional
        - **type: scripted** (`type: scripted`)
          - `type` (enum) — required
            Values: `scripted`
          - `script` (string) — required
          - `weight_script` (string) — optional
      - `mapping` (object) — optional
        Enable or disable dynamic mapping for an index.
        - `coerce` (boolean) — optional
        - `total_fields` (object) — optional
          - `limit` (number | string · default: 1000) — optional
            The maximum number of fields in an index. Field and object mappings, as well as field aliases count towards this limit.
The limit is in place to prevent mappings and searches from becoming too large. Higher values can lead to performance
degradations and memory issues, especially in clusters with a high load or few resources.
          - `ignore_dynamic_beyond_limit` (boolean | string · default: false) — optional
            This setting determines what happens when a dynamically mapped field would exceed the total fields limit. When set
to false (the default), the index request of the document that tries to add a dynamic field to the mapping will fail
with the message Limit of total fields [X] has been exceeded. When set to true, the index request will not fail.
Instead, fields that would exceed the limit are not added to the mapping, similar to dynamic: false.
The fields that were not added to the mapping will be added to the _ignored field.
        - `depth` (object) — optional
          - `limit` (number · default: 20) — optional
            The maximum depth for a field, which is measured as the number of inner objects. For instance, if all fields are defined
at the root object level, then the depth is 1. If there is one object mapping, then the depth is 2, etc.
        - `nested_fields` (object) — optional
          - `limit` (number · default: 50) — optional
            The maximum number of distinct nested mappings in an index. The nested type should only be used in special cases, when
arrays of objects need to be queried independently of each other. To safeguard against poorly designed mappings, this
setting limits the number of unique nested types per index.
        - `nested_objects` (object) — optional
          - `limit` (number · default: 10000) — optional
            The maximum number of nested JSON objects that a single document can contain across all nested types. This limit helps
to prevent out of memory errors when a document contains too many nested objects.
        - `field_name_length` (object) — optional
          - `limit` (number) — optional
            Setting for the maximum length of a field name. This setting isn’t really something that addresses mappings explosion but
might still be useful if you want to limit the field length. It usually shouldn’t be necessary to set this setting. The
default is okay unless a user starts to add a huge number of fields with really long names. Default is `Long.MAX_VALUE` (no limit).
        - `dimension_fields` (object) — optional
          - `limit` (number) — optional
            [preview] This functionality is in technical preview and may be changed or removed in a future release.
Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
        - `source` (object) — optional
          - `mode` (enum) — required
            Values: `disabled`, `stored`, `synthetic`
        - `ignore_malformed` (boolean | string) — optional
      - `indexing.slowlog` (object) — optional
        - `level` (string) — optional
        - `source` (number) — optional
        - `reformat` (boolean) — optional
        - `threshold` (object) — optional
          - `index` (object) — optional
            The indexing slow log, similar in functionality to the search slow log. The log file name ends with `_index_indexing_slowlog.json`.
Log and the thresholds are configured in the same way as the search slowlog.
            - `warn` (union oneOf) — optional
              Values: `-1`, `0`
            - `info` (union oneOf) — optional
              Values: `-1`, `0`
            - `debug` (union oneOf) — optional
              Values: `-1`, `0`
            - `trace` (union oneOf) — optional
              Values: `-1`, `0`
      - `indexing_pressure` (object) — optional
        Configure indexing back pressure limits.
        - `memory` (object) — required
          - `limit` (number) — optional
            Number of outstanding bytes that may be consumed by indexing requests. When this limit is reached or exceeded,
the node will reject new coordinating and primary operations. When replica operations consume 1.5x this limit,
the node will reject new replica operations. Defaults to 10% of the heap.
      - `store` (object) — optional
        The store module allows you to control how index data is stored and accessed on disk.
        - `type` (union anyOf) — optional
          

Supported values include:
  - `fs`: Default file system implementation. This will pick the best implementation depending on the operating environment, which
is currently hybridfs on all supported systems but is subject to change.
  - `niofs`: The NIO FS type stores the shard index on the file system (maps to Lucene NIOFSDirectory) using NIO. It allows multiple
threads to read from the same file concurrently. It is not recommended on Windows because of a bug in the SUN Java
implementation and disables some optimizations for heap memory usage.
  - `mmapfs`: The MMap FS type stores the shard index on the file system (maps to Lucene MMapDirectory) by mapping a file into
memory (mmap). Memory mapping uses up a portion of the virtual memory address space in your process equal to the size
of the file being mapped. Before using this class, be sure you have allowed plenty of virtual address space.
  - `hybridfs`: The hybridfs type is a hybrid of niofs and mmapfs, which chooses the best file system type for each type of file
based on the read access pattern. Currently only the Lucene term dictionary, norms and doc values files are memory
mapped. All other files are opened using Lucene NIOFSDirectory. Similarly to mmapfs be sure you have allowed
plenty of virtual address space.
          Values: `fs`, `niofs`, `mmapfs`, `hybridfs`
        - `allow_mmap` (boolean) — optional
          You can restrict the use of the mmapfs and the related hybridfs store type via the setting node.store.allow_mmap.
This is a boolean setting indicating whether or not memory-mapping is allowed. The default is to allow it. This
setting is useful, for example, if you are in an environment where you can not control the ability to create a lot
of memory maps so you need disable the ability to use memory-mapping.
        - `stats_refresh_interval` (union oneOf) — optional
          How often store statistics are refreshed
          Values: `-1`, `0`
    - `mappings` (object) — optional
      - `all_field` (object) — optional
        - `analyzer` (string) — required
        - `enabled` (boolean) — required
        - `omit_norms` (boolean) — required
        - `search_analyzer` (string) — required
        - `similarity` (string) — required
        - `store` (boolean) — required
        - `store_term_vector_offsets` (boolean) — required
        - `store_term_vector_payloads` (boolean) — required
        - `store_term_vector_positions` (boolean) — required
        - `store_term_vectors` (boolean) — required
      - `date_detection` (boolean) — optional
      - `dynamic` (enum) — optional
        Values: `strict`, `runtime`, `true`, `false`
      - `dynamic_date_formats` (string[]) — optional
      - `dynamic_templates` (string to object[]) — optional
      - `_field_names` (object) — optional
        - `enabled` (boolean) — required
      - `index_field` (object) — optional
        - `enabled` (boolean) — required
      - `_meta` (object) — optional
      - `numeric_detection` (boolean) — optional
      - `properties` (map string to oneOf) — optional
        Map values (union oneOf)
        One of:
        - **type: binary** (`type: binary`)
          - `type` (enum) — required
            Values: `binary`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
        - **type: boolean** (`type: boolean`)
          - `type` (enum) — required
            Values: `boolean`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `fielddata` (object) — optional
            - `format` (enum) — required
              Values: `array`, `disabled`
          - `index` (boolean) — optional
          - `null_value` (boolean) — optional
          - `ignore_malformed` (boolean) — optional
          - `script` (string) — optional
          - `on_script_error` (enum) — optional
            Values: `fail`, `continue`
          - `time_series_dimension` (boolean) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
        - **type: {dynamic_type}** (`type: {dynamic_type}`)
          - `type` (enum) — required
            Values: `{dynamic_type}`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `enabled` (boolean) — optional
          - `null_value` (union oneOf) — optional
            One of: `number` or `string` or `boolean` or `object`
          - `boost` (number) — optional
          - `coerce` (boolean) — optional
          - `script` (string) — optional
          - `on_script_error` (enum) — optional
            Values: `fail`, `continue`
          - `ignore_malformed` (boolean) — optional
          - `time_series_metric` (enum) — optional
            Values: `gauge`, `counter`, `summary`, `histogram`, `position`
          - `time_series_dimension` (boolean) — optional
          - `analyzer` (string) — optional
          - `eager_global_ordinals` (boolean) — optional
          - `fielddata` (boolean) — optional
          - `fielddata_frequency_filter` (object) — optional
            - `max` (number) — required
            - `min` (number) — required
            - `min_segment_size` (number) — required
          - `index` (boolean) — optional
          - `index_options` (enum) — optional
            Values: `docs`, `freqs`, `positions`, `offsets`
          - `index_phrases` (boolean) — optional
          - `index_prefixes` (union oneOf) — optional — nullable
            - **TextIndexPrefixes**
              - `max_chars` (number) — optional
              - `min_chars` (number) — optional
            - **string**
          - `norms` (boolean) — optional
          - `position_increment_gap` (number) — optional
          - `search_analyzer` (string) — optional
          - `search_quote_analyzer` (string) — optional
          - `similarity` (union string) — optional — nullable
            One of: `string`
          - `term_vector` (enum) — optional
            Values: `no`, `yes`, `with_offsets`, `with_positions`, `with_positions_offsets`, `with_positions_offsets_payloads`, `with_positions_payloads`
          - `format` (string) — optional
          - `precision_step` (number) — optional
          - `locale` (string) — optional
          - `subobjects` (enum) — optional
            Values: `true`, `false`
        - **type: join** (`type: join`)
          - `type` (enum) — required
            Values: `join`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `relations` (map string to RelationName | RelationName[]) — optional
          - `eager_global_ordinals` (boolean) — optional
        - **type: keyword** (`type: keyword`)
          - `type` (enum) — required
            Values: `keyword`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `eager_global_ordinals` (boolean) — optional
          - `index` (boolean) — optional
          - `index_options` (enum) — optional
            Values: `docs`, `freqs`, `positions`, `offsets`
          - `script` (string) — optional
          - `on_script_error` (enum) — optional
            Values: `fail`, `continue`
          - `normalizer` (string) — optional
          - `norms` (boolean) — optional
          - `null_value` (string) — optional
          - `similarity` (union string) — optional — nullable
            One of: `string`
          - `split_queries_on_whitespace` (boolean) — optional
          - `time_series_dimension` (boolean) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
        - **type: match_only_text** (`type: match_only_text`)
          A variant of text that trades scoring and efficiency of positional queries for space efficiency. This field
effectively stores data the same way as a text field that only indexes documents (index_options: docs) and
disables norms (norms: false). Term queries perform as fast if not faster as on text fields, however queries
that need positions such as the match_phrase query perform slower as they need to look at the _source document
to verify whether a phrase matches. All queries return constant scores that are equal to 1.0.
          - `type` (enum) — required
            Values: `match_only_text`
          - `fields` (map string to oneOf) — optional — recursive
            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.
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `copy_to` (union oneOf) — optional
            Allows you to copy the values of multiple fields into a group
field, which can then be queried as a single field.
            One of: `string[]` or `string`
        - **type: percolator** (`type: percolator`)
          - `type` (enum) — required
            Values: `percolator`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
        - **type: rank_feature** (`type: rank_feature`)
          - `type` (enum) — required
            Values: `rank_feature`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `positive_score_impact` (boolean) — optional
        - **type: rank_features** (`type: rank_features`)
          - `type` (enum) — required
            Values: `rank_features`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `positive_score_impact` (boolean) — optional
        - **type: search_as_you_type** (`type: search_as_you_type`)
          - `type` (enum) — required
            Values: `search_as_you_type`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `analyzer` (string) — optional
          - `index` (boolean) — optional
          - `index_options` (enum) — optional
            Values: `docs`, `freqs`, `positions`, `offsets`
          - `max_shingle_size` (number) — optional
          - `norms` (boolean) — optional
          - `search_analyzer` (string) — optional
          - `search_quote_analyzer` (string) — optional
          - `similarity` (union string) — optional — nullable
            One of: `string`
          - `term_vector` (enum) — optional
            Values: `no`, `yes`, `with_offsets`, `with_positions`, `with_positions_offsets`, `with_positions_offsets_payloads`, `with_positions_payloads`
        - **type: text** (`type: text`)
          - `type` (enum) — required
            Values: `text`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `analyzer` (string) — optional
          - `boost` (number) — optional
          - `eager_global_ordinals` (boolean) — optional
          - `fielddata` (boolean) — optional
          - `fielddata_frequency_filter` (object) — optional
            - `max` (number) — required
            - `min` (number) — required
            - `min_segment_size` (number) — required
          - `index` (boolean) — optional
          - `index_options` (enum) — optional
            Values: `docs`, `freqs`, `positions`, `offsets`
          - `index_phrases` (boolean) — optional
          - `index_prefixes` (union oneOf) — optional — nullable
            - **TextIndexPrefixes**
              - `max_chars` (number) — optional
              - `min_chars` (number) — optional
            - **string**
          - `norms` (boolean) — optional
          - `position_increment_gap` (number) — optional
          - `search_analyzer` (string) — optional
          - `search_quote_analyzer` (string) — optional
          - `similarity` (union string) — optional — nullable
            One of: `string`
          - `term_vector` (enum) — optional
            Values: `no`, `yes`, `with_offsets`, `with_positions`, `with_positions_offsets`, `with_positions_offsets_payloads`, `with_positions_payloads`
        - **type: version** (`type: version`)
          - `type` (enum) — required
            Values: `version`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
        - **type: wildcard** (`type: wildcard`)
          - `type` (enum) — required
            Values: `wildcard`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `null_value` (string) — optional
        - **type: date_nanos** (`type: date_nanos`)
          - `type` (enum) — required
            Values: `date_nanos`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `format` (string) — optional
          - `ignore_malformed` (boolean) — optional
          - `index` (boolean) — optional
          - `script` (string) — optional
          - `on_script_error` (enum) — optional
            Values: `fail`, `continue`
          - `null_value` (union oneOf) — optional
            One of: `string` or `number`
          - `precision_step` (number) — optional
        - **type: date** (`type: date`)
          - `type` (enum) — required
            Values: `date`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `fielddata` (object) — optional
            - `format` (enum) — required
              Values: `array`, `disabled`
          - `format` (string) — optional
          - `ignore_malformed` (boolean) — optional
          - `index` (boolean) — optional
          - `script` (string) — optional
          - `on_script_error` (enum) — optional
            Values: `fail`, `continue`
          - `null_value` (union oneOf) — optional
            One of: `string` or `number`
          - `precision_step` (number) — optional
          - `locale` (string) — optional
        - **type: aggregate_metric_double** (`type: aggregate_metric_double`)
          - `type` (enum) — required
            Values: `aggregate_metric_double`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `default_metric` (string) — required
          - `ignore_malformed` (boolean) — optional
          - `metrics` (string[]) — required
          - `time_series_metric` (enum) — optional
            Values: `gauge`, `counter`, `summary`, `histogram`, `position`
        - **type: dense_vector** (`type: dense_vector`)
          - `type` (enum) — required
            Values: `dense_vector`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `dims` (number) — optional
            Number of vector dimensions. Can't exceed `4096`. If `dims` is not specified, it will be set to the length of
the first vector added to the field.
          - `element_type` (enum · default: float) — optional
            The data type used to encode vectors. The supported data types are `float` (default), `byte`, and `bit`.

Supported values include:
  - `bit`: Indexes a single bit per dimension. Useful for very high-dimensional vectors or models that specifically support
bit vectors.

NOTE: when using `bit`, the number of dimensions must be a multiple of `8` and must represent the number of bits.
  - `byte`: Indexes a 1-byte integer value per dimension.
  - `float`: Indexes a 4-byte floating-point value per dimension.
            Values: `bit`, `byte`, `float`
          - `index` (boolean · default: true) — optional
            If `true`, you can search this field using the kNN search API.
          - `index_options` (object) — optional
            An optional section that configures the kNN indexing algorithm. The HNSW algorithm has two internal parameters
that influence how the data structure is built. These can be adjusted to improve the accuracy of results, at the
expense of slower indexing speed.

This parameter can only be specified when `index` is `true`.
            - `confidence_interval` (number) — optional
              The confidence interval to use when quantizing the vectors. Can be any value between and including `0.90` and
`1.0` or exactly `0`. When the value is `0`, this indicates that dynamic quantiles should be calculated for
optimized quantization. When between `0.90` and `1.0`, this value restricts the values used when calculating
the quantization thresholds.

For example, a value of `0.95` will only use the middle `95%` of the values when calculating the quantization
thresholds (e.g. the highest and lowest `2.5%` of values will be ignored).

Defaults to `1/(dims + 1)` for `int8` quantized vectors and `0` for `int4` for dynamic quantile calculation.

Only applicable to `int8_hnsw`, `int4_hnsw`, `int8_flat`, and `int4_flat` index types.
            - `ef_construction` (number · default: 100) — optional
              The number of candidates to track while assembling the list of nearest neighbors for each new node.

Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw` index types.
            - `m` (number · default: 16) — optional
              The number of neighbors each node will be connected to in the HNSW graph.

Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw` index types.
            - `type` (enum) — required
              The type of kNN algorithm to use.

Supported values include:
  - `bbq_flat`: This utilizes a brute-force search algorithm in addition to automatically quantizing to binary vectors.
Only supports `element_type` of `float`.
  - `bbq_hnsw`: This utilizes the HNSW algorithm in addition to automatic binary quantization for scalable approximate kNN
search with `element_type` of `float`.

This can reduce the memory footprint by nearly 32x at the cost of some accuracy.
  - `flat`: This utilizes a brute-force search algorithm for exact kNN search. This supports all `element_type` values.
  - `hnsw`: This utilizes the HNSW algorithm for scalable approximate kNN search. This supports all `element_type` values.
  - `int4_flat`: This utilizes a brute-force search algorithm in addition to automatically half-byte scalar quantization.
Only supports `element_type` of `float`.
  - `int4_hnsw`: This utilizes the HNSW algorithm in addition to automatically scalar quantization for scalable approximate kNN
search with `element_type` of `float`.

This can reduce the memory footprint by 8x at the cost of some accuracy.
  - `int8_flat`: This utilizes a brute-force search algorithm in addition to automatically scalar quantization. Only supports
`element_type` of `float`.
  - `int8_hnsw`: The default index type for `float` vectors. This utilizes the HNSW algorithm in addition to automatically scalar
quantization for scalable approximate kNN search with `element_type` of `float`.

This can reduce the memory footprint by 4x at the cost of some accuracy.
              Values: `bbq_flat`, `bbq_hnsw`, `flat`, `hnsw`, `int4_flat`, `int4_hnsw`, `int8_flat`, `int8_hnsw`
          - `similarity` (enum) — optional
            The vector similarity metric to use in kNN search.

Documents are ranked by their vector field's similarity to the query vector. The `_score` of each document will
be derived from the similarity, in a way that ensures scores are positive and that a larger score corresponds
to a higher ranking.

Defaults to `l2_norm` when `element_type` is `bit` otherwise defaults to `cosine`.

`bit` vectors only support `l2_norm` as their similarity metric.

This parameter can only be specified when `index` is `true`.

Supported values include:
  - `cosine`: Computes the cosine similarity. During indexing Elasticsearch automatically normalizes vectors with `cosine`
similarity to unit length. This allows to internally use `dot_product` for computing similarity, which is more
efficient. Original un-normalized vectors can be still accessed through scripts.

The document `_score` is computed as `(1 + cosine(query, vector)) / 2`.

The `cosine` similarity does not allow vectors with zero magnitude, since cosine is not defined in this case.
  - `dot_product`: Computes the dot product of two unit vectors. This option provides an optimized way to perform cosine similarity.
The constraints and computed score are defined by `element_type`.

When `element_type` is `float`, all vectors must be unit length, including both document and query vectors.

The document `_score` is computed as `(1 + dot_product(query, vector)) / 2`.

When `element_type` is `byte`, all vectors must have the same length including both document and query vectors or
results will be inaccurate.

The document `_score` is computed as `0.5 + (dot_product(query, vector) / (32768 * dims))` where `dims` is the
number of dimensions per vector.
  - `l2_norm`: Computes similarity based on the `L2` distance (also known as Euclidean distance) between the vectors.

The document `_score` is computed as `1 / (1 + l2_norm(query, vector)^2)`.

For `bit` vectors, instead of using `l2_norm`, the `hamming` distance between the vectors is used.

The `_score` transformation is `(numBits - hamming(a, b)) / numBits`.
  - `max_inner_product`: Computes the maximum inner product of two vectors. This is similar to `dot_product`, but doesn't require vectors
to be normalized. This means that each vector’s magnitude can significantly effect the score.

The document `_score` is adjusted to prevent negative values. For `max_inner_product` values `< 0`, the `_score`
is `1 / (1 + -1 * max_inner_product(query, vector))`. For non-negative `max_inner_product` results the `_score`
is calculated `max_inner_product(query, vector) + 1`.
            Values: `cosine`, `dot_product`, `l2_norm`, `max_inner_product`
        - **type: flattened** (`type: flattened`)
          - `type` (enum) — required
            Values: `flattened`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `boost` (number) — optional
          - `depth_limit` (number) — optional
          - `doc_values` (boolean) — optional
          - `eager_global_ordinals` (boolean) — optional
          - `index` (boolean) — optional
          - `index_options` (enum) — optional
            Values: `docs`, `freqs`, `positions`, `offsets`
          - `null_value` (string) — optional
          - `similarity` (string) — optional
          - `split_queries_on_whitespace` (boolean) — optional
          - `time_series_dimensions` (string[]) — optional
        - **type: nested** (`type: nested`)
          - `type` (enum) — required
            Values: `nested`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `enabled` (boolean) — optional
          - `include_in_parent` (boolean) — optional
          - `include_in_root` (boolean) — optional
        - **type: object** (`type: object`)
          - `type` (enum) — optional
            Values: `object`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `enabled` (boolean) — optional
          - `subobjects` (enum) — optional
            Values: `true`, `false`
        - **type: passthrough** (`type: passthrough`)
          - `type` (enum) — optional
            Values: `passthrough`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `enabled` (boolean) — optional
          - `priority` (number) — optional
          - `time_series_dimension` (boolean) — optional
        - **type: rank_vectors** (`type: rank_vectors`)
          Technical preview
          - `type` (enum) — required
            Values: `rank_vectors`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `element_type` (enum) — optional
            Values: `byte`, `float`, `bit`
          - `dims` (number) — optional
        - **type: semantic_text** (`type: semantic_text`)
          - `type` (enum) — required
            Values: `semantic_text`
          - `meta` (map string to string) — optional
          - `inference_id` (string · default: .elser-2-elasticsearch) — optional
            Inference endpoint that will be used to generate embeddings for the field.
This parameter cannot be updated. Use the Create inference API to create the endpoint.
If `search_inference_id` is specified, the inference endpoint will only be used at index time.
          - `search_inference_id` (string) — optional
            Inference endpoint that will be used to generate embeddings at query time.
You can update this parameter by using the Update mapping API. Use the Create inference API to create the endpoint.
If not specified, the inference endpoint defined by inference_id will be used at both index and query time.
          - `index_options` (object) — optional
            Settings for index_options that override any defaults used by semantic_text, for example
specific quantization settings.
            - `dense_vector` (object) — optional
              - `confidence_interval` (number) — optional
                The confidence interval to use when quantizing the vectors. Can be any value between and including `0.90` and
`1.0` or exactly `0`. When the value is `0`, this indicates that dynamic quantiles should be calculated for
optimized quantization. When between `0.90` and `1.0`, this value restricts the values used when calculating
the quantization thresholds.

For example, a value of `0.95` will only use the middle `95%` of the values when calculating the quantization
thresholds (e.g. the highest and lowest `2.5%` of values will be ignored).

Defaults to `1/(dims + 1)` for `int8` quantized vectors and `0` for `int4` for dynamic quantile calculation.

Only applicable to `int8_hnsw`, `int4_hnsw`, `int8_flat`, and `int4_flat` index types.
              - `ef_construction` (number · default: 100) — optional
                The number of candidates to track while assembling the list of nearest neighbors for each new node.

Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw` index types.
              - `m` (number · default: 16) — optional
                The number of neighbors each node will be connected to in the HNSW graph.

Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw` index types.
              - `type` (enum) — required
                The type of kNN algorithm to use.

Supported values include:
  - `bbq_flat`: This utilizes a brute-force search algorithm in addition to automatically quantizing to binary vectors.
Only supports `element_type` of `float`.
  - `bbq_hnsw`: This utilizes the HNSW algorithm in addition to automatic binary quantization for scalable approximate kNN
search with `element_type` of `float`.

This can reduce the memory footprint by nearly 32x at the cost of some accuracy.
  - `flat`: This utilizes a brute-force search algorithm for exact kNN search. This supports all `element_type` values.
  - `hnsw`: This utilizes the HNSW algorithm for scalable approximate kNN search. This supports all `element_type` values.
  - `int4_flat`: This utilizes a brute-force search algorithm in addition to automatically half-byte scalar quantization.
Only supports `element_type` of `float`.
  - `int4_hnsw`: This utilizes the HNSW algorithm in addition to automatically scalar quantization for scalable approximate kNN
search with `element_type` of `float`.

This can reduce the memory footprint by 8x at the cost of some accuracy.
  - `int8_flat`: This utilizes a brute-force search algorithm in addition to automatically scalar quantization. Only supports
`element_type` of `float`.
  - `int8_hnsw`: The default index type for `float` vectors. This utilizes the HNSW algorithm in addition to automatically scalar
quantization for scalable approximate kNN search with `element_type` of `float`.

This can reduce the memory footprint by 4x at the cost of some accuracy.
                Values: `bbq_flat`, `bbq_hnsw`, `flat`, `hnsw`, `int4_flat`, `int4_hnsw`, `int8_flat`, `int8_hnsw`
          - `chunking_settings` (object) — optional
            Settings for chunking text into smaller passages. If specified, these will override the
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.
            - `strategy` (string · default: sentence) — required
              The chunking strategy: `sentence` or `word`.
            - `max_chunk_size` (number · default: 250) — required
              The maximum size of a chunk in words.
This value cannot be higher than `300` or lower than `20` (for `sentence` strategy) or `10` (for `word` strategy).
            - `overlap` (number · default: 100) — optional
              The number of overlapping words for chunks.
It is applicable only to a `word` chunking strategy.
This value cannot be higher than half the `max_chunk_size` value.
            - `sentence_overlap` (number · default: 1) — optional
              The number of overlapping sentences for chunks.
It is applicable only for a `sentence` chunking strategy.
It can be either `1` or `0`.
          - `fields` (map string to oneOf) — optional — recursive
            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.
        - **type: sparse_vector** (`type: sparse_vector`)
          - `type` (enum) — required
            Values: `sparse_vector`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `store` (boolean) — optional
          - `index_options` (object) — optional
            Additional index options for the sparse vector field that controls the
token pruning behavior of the sparse vector field.
            - `prune` (boolean) — optional
              Whether to perform pruning, omitting the non-significant tokens from the query to improve query performance.
If prune is true but the pruning_config is not specified, pruning will occur but default values will be used.
Default: false
            - `pruning_config` (object) — optional
              Optional pruning configuration.
If enabled, this will omit non-significant tokens from the query in order to improve query performance.
This is only used if prune is set to true.
If prune is set to true but pruning_config is not specified, default values will be used.
              - `tokens_freq_ratio_threshold` (number · default: 5) — optional
                Tokens whose frequency is more than this threshold times the average frequency of all tokens in the specified field are considered outliers and pruned.
              - `tokens_weight_threshold` (number · default: 0.4) — optional
                Tokens whose weight is less than this threshold are considered nonsignificant and pruned.
              - `only_score_pruned_tokens` (boolean · default: false) — optional
                Whether to only score pruned tokens, vs only scoring kept tokens.
        - **type: completion** (`type: completion`)
          - `type` (enum) — required
            Values: `completion`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `analyzer` (string) — optional
          - `contexts` (object[]) — optional
            - `name` (string) — required
            - `path` (string) — optional
            - `type` (string) — required
            - `precision` (number | string) — optional
          - `max_input_length` (number) — optional
          - `preserve_position_increments` (boolean) — optional
          - `preserve_separators` (boolean) — optional
          - `search_analyzer` (string) — optional
        - **type: constant_keyword** (`type: constant_keyword`)
          - `type` (enum) — required
            Values: `constant_keyword`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `value` (object) — optional
        - **type: counted_keyword** (`type: counted_keyword`)
          - `type` (enum) — required
            Values: `counted_keyword`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `index` (boolean) — optional
        - **type: alias** (`type: alias`)
          - `type` (enum) — required
            Values: `alias`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `path` (string) — optional
        - **type: histogram** (`type: histogram`)
          - `type` (enum) — required
            Values: `histogram`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `ignore_malformed` (boolean) — optional
        - **type: ip** (`type: ip`)
          - `type` (enum) — required
            Values: `ip`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `index` (boolean) — optional
          - `ignore_malformed` (boolean) — optional
          - `null_value` (string) — optional
          - `on_script_error` (enum) — optional
            Values: `fail`, `continue`
          - `script` (string) — optional
          - `time_series_dimension` (boolean) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
        - **type: murmur3** (`type: murmur3`)
          - `type` (enum) — required
            Values: `murmur3`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
        - **type: token_count** (`type: token_count`)
          - `type` (enum) — required
            Values: `token_count`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `analyzer` (string) — optional
          - `boost` (number) — optional
          - `index` (boolean) — optional
          - `null_value` (number) — optional
          - `enable_position_increments` (boolean) — optional
        - **type: geo_point** (`type: geo_point`)
          - `type` (enum) — required
            Values: `geo_point`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `ignore_malformed` (boolean) — optional
          - `ignore_z_value` (boolean) — optional
          - `null_value` (union oneOf) — optional
            - **LatLonGeoLocation**
              - `lat` (number) — required
                Latitude
              - `lon` (number) — required
                Longitude
            - **GeoHashLocation**
              - `geohash` (string) — required
            - **[]number**
            - **string**
          - `index` (boolean) — optional
          - `on_script_error` (enum) — optional
            Values: `fail`, `continue`
          - `script` (string) — optional
          - `time_series_metric` (enum) — optional
            Values: `gauge`, `counter`, `position`
        - **type: geo_shape** (`type: geo_shape`)
          The `geo_shape` data type facilitates the indexing of and searching with arbitrary geo shapes such as rectangles
and polygons.
          - `type` (enum) — required
            Values: `geo_shape`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `coerce` (boolean) — optional
          - `ignore_malformed` (boolean) — optional
          - `ignore_z_value` (boolean) — optional
          - `index` (boolean) — optional
          - `orientation` (enum) — optional
            Values: `right`, `RIGHT`, `counterclockwise`, `ccw`, `left`, `LEFT`, `clockwise`, `cw`
          - `strategy` (enum) — optional
            Values: `recursive`, `term`
        - **type: point** (`type: point`)
          - `type` (enum) — required
            Values: `point`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `ignore_malformed` (boolean) — optional
          - `ignore_z_value` (boolean) — optional
          - `null_value` (string) — optional
        - **type: shape** (`type: shape`)
          The `shape` data type facilitates the indexing of and searching with arbitrary `x, y` cartesian shapes such as
rectangles and polygons.
          - `type` (enum) — required
            Values: `shape`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `coerce` (boolean) — optional
          - `ignore_malformed` (boolean) — optional
          - `ignore_z_value` (boolean) — optional
          - `orientation` (enum) — optional
            Values: `right`, `RIGHT`, `counterclockwise`, `ccw`, `left`, `LEFT`, `clockwise`, `cw`
        - **type: byte** (`type: byte`)
          - `type` (enum) — required
            Values: `byte`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `coerce` (boolean) — optional
          - `ignore_malformed` (boolean) — optional
          - `index` (boolean) — optional
          - `on_script_error` (enum) — optional
            Values: `fail`, `continue`
          - `script` (string) — optional
          - `time_series_metric` (enum) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
            Values: `gauge`, `counter`, `summary`, `histogram`, `position`
          - `time_series_dimension` (boolean · default: false) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
          - `null_value` (number) — optional
        - **type: double** (`type: double`)
          - `type` (enum) — required
            Values: `double`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `coerce` (boolean) — optional
          - `ignore_malformed` (boolean) — optional
          - `index` (boolean) — optional
          - `on_script_error` (enum) — optional
            Values: `fail`, `continue`
          - `script` (string) — optional
          - `time_series_metric` (enum) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
            Values: `gauge`, `counter`, `summary`, `histogram`, `position`
          - `time_series_dimension` (boolean · default: false) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
          - `null_value` (number) — optional
        - **type: float** (`type: float`)
          - `type` (enum) — required
            Values: `float`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `coerce` (boolean) — optional
          - `ignore_malformed` (boolean) — optional
          - `index` (boolean) — optional
          - `on_script_error` (enum) — optional
            Values: `fail`, `continue`
          - `script` (string) — optional
          - `time_series_metric` (enum) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
            Values: `gauge`, `counter`, `summary`, `histogram`, `position`
          - `time_series_dimension` (boolean · default: false) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
          - `null_value` (number) — optional
        - **type: half_float** (`type: half_float`)
          - `type` (enum) — required
            Values: `half_float`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `coerce` (boolean) — optional
          - `ignore_malformed` (boolean) — optional
          - `index` (boolean) — optional
          - `on_script_error` (enum) — optional
            Values: `fail`, `continue`
          - `script` (string) — optional
          - `time_series_metric` (enum) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
            Values: `gauge`, `counter`, `summary`, `histogram`, `position`
          - `time_series_dimension` (boolean · default: false) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
          - `null_value` (number) — optional
        - **type: integer** (`type: integer`)
          - `type` (enum) — required
            Values: `integer`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `coerce` (boolean) — optional
          - `ignore_malformed` (boolean) — optional
          - `index` (boolean) — optional
          - `on_script_error` (enum) — optional
            Values: `fail`, `continue`
          - `script` (string) — optional
          - `time_series_metric` (enum) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
            Values: `gauge`, `counter`, `summary`, `histogram`, `position`
          - `time_series_dimension` (boolean · default: false) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
          - `null_value` (number) — optional
        - **type: long** (`type: long`)
          - `type` (enum) — required
            Values: `long`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `coerce` (boolean) — optional
          - `ignore_malformed` (boolean) — optional
          - `index` (boolean) — optional
          - `on_script_error` (enum) — optional
            Values: `fail`, `continue`
          - `script` (string) — optional
          - `time_series_metric` (enum) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
            Values: `gauge`, `counter`, `summary`, `histogram`, `position`
          - `time_series_dimension` (boolean · default: false) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
          - `null_value` (number) — optional
        - **type: scaled_float** (`type: scaled_float`)
          - `type` (enum) — required
            Values: `scaled_float`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `coerce` (boolean) — optional
          - `ignore_malformed` (boolean) — optional
          - `index` (boolean) — optional
          - `on_script_error` (enum) — optional
            Values: `fail`, `continue`
          - `script` (string) — optional
          - `time_series_metric` (enum) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
            Values: `gauge`, `counter`, `summary`, `histogram`, `position`
          - `time_series_dimension` (boolean · default: false) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
          - `null_value` (number) — optional
          - `scaling_factor` (number) — optional
        - **type: short** (`type: short`)
          - `type` (enum) — required
            Values: `short`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `coerce` (boolean) — optional
          - `ignore_malformed` (boolean) — optional
          - `index` (boolean) — optional
          - `on_script_error` (enum) — optional
            Values: `fail`, `continue`
          - `script` (string) — optional
          - `time_series_metric` (enum) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
            Values: `gauge`, `counter`, `summary`, `histogram`, `position`
          - `time_series_dimension` (boolean · default: false) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
          - `null_value` (number) — optional
        - **type: unsigned_long** (`type: unsigned_long`)
          - `type` (enum) — required
            Values: `unsigned_long`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `coerce` (boolean) — optional
          - `ignore_malformed` (boolean) — optional
          - `index` (boolean) — optional
          - `on_script_error` (enum) — optional
            Values: `fail`, `continue`
          - `script` (string) — optional
          - `time_series_metric` (enum) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
            Values: `gauge`, `counter`, `summary`, `histogram`, `position`
          - `time_series_dimension` (boolean · default: false) — optional
            For internal use by Elastic only. Marks the field as a time series dimension. Defaults to false.
          - `null_value` (number) — optional
        - **type: date_range** (`type: date_range`)
          - `type` (enum) — required
            Values: `date_range`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `coerce` (boolean) — optional
          - `index` (boolean) — optional
          - `format` (string) — optional
        - **type: double_range** (`type: double_range`)
          - `type` (enum) — required
            Values: `double_range`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `coerce` (boolean) — optional
          - `index` (boolean) — optional
        - **type: float_range** (`type: float_range`)
          - `type` (enum) — required
            Values: `float_range`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `coerce` (boolean) — optional
          - `index` (boolean) — optional
        - **type: integer_range** (`type: integer_range`)
          - `type` (enum) — required
            Values: `integer_range`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `coerce` (boolean) — optional
          - `index` (boolean) — optional
        - **type: ip_range** (`type: ip_range`)
          - `type` (enum) — required
            Values: `ip_range`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `coerce` (boolean) — optional
          - `index` (boolean) — optional
        - **type: long_range** (`type: long_range`)
          - `type` (enum) — required
            Values: `long_range`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `boost` (number) — optional
          - `coerce` (boolean) — optional
          - `index` (boolean) — optional
        - **type: icu_collation_keyword** (`type: icu_collation_keyword`)
          - `type` (enum) — required
            Values: `icu_collation_keyword`
          - `meta` (map string to string) — optional
            Metadata about the field.
          - `properties` (map string to oneOf) — optional — recursive
          - `ignore_above` (number) — optional
          - `dynamic` (enum) — optional
            Values: `strict`, `runtime`, `true`, `false`
          - `fields` (map string to oneOf) — optional — recursive
          - `synthetic_source_keep` (enum) — optional
            

Supported values include:
  - `none`: Synthetic source diverges from the original source (default)
  - `arrays`: Arrays of the corresponding field or object preserve the original element ordering and duplicate elements.
The synthetic source fragment for such arrays is not guaranteed to match the original source exactly,
e.g. array [1, 2, [5], [[4, [3]]], 5] may appear as-is or in an equivalent format like [1, 2, 5, 4, 3, 5].
The exact format may change in the future, in an effort to reduce the storage overhead of this option.
  - `all`: The source for both singleton instances and arrays of the corresponding field or object gets recorded.
When applied to objects, the source of all sub-objects and sub-fields gets captured.
Furthermore, the original source of arrays gets captured and appears in synthetic source with no modifications.
            Values: `none`, `arrays`, `all`
          - `copy_to` (union oneOf) — optional
            One of: `string[]` or `string`
          - `store` (boolean) — optional
          - `doc_values` (boolean) — optional
          - `norms` (boolean) — optional
          - `index_options` (enum) — optional
            Values: `docs`, `freqs`, `positions`, `offsets`
          - `index` (boolean) — optional
            Should the field be searchable?
          - `null_value` (string) — optional
            Accepts a string value which is substituted for any explicit null values. Defaults to null, which means the field is treated as missing.
          - `rules` (string) — optional
          - `language` (string) — optional
          - `country` (string) — optional
          - `variant` (string) — optional
          - `strength` (enum) — optional
            Values: `primary`, `secondary`, `tertiary`, `quaternary`, `identical`
          - `decomposition` (enum) — optional
            Values: `no`, `identical`
          - `alternate` (enum) — optional
            Values: `shifted`, `non-ignorable`
          - `case_level` (boolean) — optional
          - `case_first` (enum) — optional
            Values: `lower`, `upper`
          - `numeric` (boolean) — optional
          - `variable_top` (string) — optional
          - `hiragana_quaternary_mode` (boolean) — optional
      - `_routing` (object) — optional
        - `required` (boolean) — required
      - `_size` (object) — optional
        - `enabled` (boolean) — required
      - `_source` (object) — optional
        - `compress` (boolean) — optional
        - `compress_threshold` (string) — optional
        - `enabled` (boolean) — optional
        - `excludes` (string[]) — optional
        - `includes` (string[]) — optional
        - `mode` (enum) — optional
          

Supported values include:
  - `disabled`
  - `stored`
  - `synthetic`: Instead of storing source documents on disk exactly as you send them,
 Elasticsearch can reconstruct source content on the fly upon retrieval.
          Values: `disabled`, `stored`, `synthetic`
      - `runtime` (map string to object) — optional
        Map values (object)
        - `fields` (map string to object) — optional
          For type `composite`
          Map values (object)
          - `type` (enum) — required
            Values: `boolean`, `composite`, `date`, `double`, `geo_point`, `geo_shape`, `ip`, `keyword`, `long`, `lookup`
        - `fetch_fields` (object[]) — optional
          For type `lookup`
          - `field` (string) — required
          - `format` (string) — optional
        - `format` (string) — optional
          A custom format for `date` type runtime fields.
        - `input_field` (string) — optional
          For type `lookup`
        - `target_field` (string) — optional
          For type `lookup`
        - `target_index` (string) — optional
          For type `lookup`
        - `script` (string) — optional
          Painless script executed at query time.
        - `on_script_error` (enum) — optional
          Values: `fail`, `continue`
        - `type` (enum) — required
          Field type, which can be: `boolean`, `composite`, `date`, `double`, `geo_point`, `ip`,`keyword`, `long`, or `lookup`.
          Values: `boolean`, `composite`, `date`, `double`, `geo_point`, `geo_shape`, `ip`, `keyword`, `long`, `lookup`
      - `enabled` (boolean) — optional
      - `subobjects` (enum) — optional
        Values: `true`, `false`
      - `_data_stream_timestamp` (object) — optional
        - `enabled` (boolean) — required
    - `aliases` (map string to object) — optional
      Map values (object)
      - `filter` ({} Query) — optional
        Query used to limit documents the alias can access.
        See [Query](https://www.elastic.co/docs/api/doc/elasticsearch/v8/types/_types-query_dsl-querycontainer)
      - `index_routing` (string) — optional
        Value used to route indexing operations to a specific shard.
If specified, this overwrites the `routing` value for indexing operations.
      - `is_write_index` (boolean · default: false) — optional
        If `true`, the index is the write index for the alias.
      - `routing` (string) — optional
        Value used to route indexing and search operations to a specific shard.
      - `search_routing` (string) — optional
        Value used to route search operations to a specific shard.
If specified, this overwrites the `routing` value for search operations.
      - `is_hidden` (boolean · default: false) — optional
        If `true`, the alias is hidden.
All indices for the alias must have the same `is_hidden` value.
    - `lifecycle` (object) — optional
      - `data_retention` (union oneOf) — optional
        If defined, every document added to this data stream will be stored at least for this time frame.
Any time after this duration the document could be deleted.
When empty, every document in this data stream will be stored indefinitely.
        Values: `-1`, `0`
      - `effective_retention` (union oneOf) — optional
        The least amount of time data should be kept by elasticsearch.
        Values: `-1`, `0`
      - `retention_determined_by` (enum) — optional
        Configuration source that can influence the retention of a data stream.
        Values: `data_stream_configuration`, `default_global_retention`, `max_global_retention`, `default_failures_retention`
      - `downsampling` (object[]) — optional
        The list of downsampling rounds to execute as part of this downsampling configuration
        - `after` (union oneOf) — required
          The duration since rollover when this downsampling round should execute
          Values: `-1`, `0`
        - `config` (object) — required
          The downsample configuration to execute.
          - `fixed_interval` (string) — required
            The interval at which to aggregate the original time series index.
      - `enabled` (boolean · default: true) — optional
        If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle
that's disabled (enabled: `false`) will have no effect on the data stream.
      - `rollover` (object) — optional
        The conditions which will trigger the rollover of a backing index as configured by the cluster setting `cluster.lifecycle.default.rollover`.
This property is an implementation detail and it will only be retrieved when the query param `include_defaults` is set to true.
The contents of this field are subject to change.
        - `min_age` (union oneOf) — optional
          Values: `-1`, `0`
        - `max_age` (string) — optional
        - `min_docs` (number) — optional
        - `max_docs` (number) — optional
        - `min_size` (number | string) — optional
        - `max_size` (number | string) — optional
        - `min_primary_shard_size` (number | string) — optional
        - `max_primary_shard_size` (number | string) — optional
        - `min_primary_shard_docs` (number) — optional
        - `max_primary_shard_docs` (number) — optional
    - `data_stream_options` (object) — optional
      - `failure_store` (object) — optional
        If defined, it specifies configuration for the failure store of this data stream.
        - `enabled` (boolean · default: true) — optional
          If defined, it turns the failure store on/off (`true`/`false`) for this data stream. A data stream failure store
that's disabled (enabled: `false`) will redirect no new failed indices to the failure store; however, it will
not remove any existing data from the failure store.
        - `lifecycle` (object) — optional
          If defined, it specifies the lifecycle configuration for the failure store of this data stream.
          - `data_retention` (union oneOf) — optional
            If defined, every document added to this data stream will be stored at least for this time frame.
Any time after this duration the document could be deleted.
When empty, every document in this data stream will be stored indefinitely.
            Values: `-1`, `0`
          - `enabled` (boolean · default: true) — optional
            If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle
that's disabled (enabled: `false`) will have no effect on the data stream.
  - `version` (number) — optional
  - `_meta` (object) — optional
  - `deprecated` (boolean) — optional
- `index_template_substitutions` (map string to object) — optional
  A map of index template names to substitute index template definition objects.
  Map values (object)
  - `index_patterns` (union oneOf) — required
    Array of wildcard (`*`) expressions used to match the names of data streams and indices during creation.
    One of: `string[]` or `string`
  - `composed_of` (string[]) — required
    An ordered list of component template names.
Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence.
  - `template` (object) — optional
    Template to be applied.
It may optionally include an `aliases`, `mappings`, or `settings` configuration.
    - `aliases` (map string to object) — optional
      Aliases to add.
If the index template includes a `data_stream` object, these are data stream aliases.
Otherwise, these are index aliases.
Data stream aliases ignore the `index_routing`, `routing`, and `search_routing` options.
      Map values (object)
      - `filter` ({} Query) — optional
        Query used to limit documents the alias can access.
        See [Query](https://www.elastic.co/docs/api/doc/elasticsearch/v8/types/_types-query_dsl-querycontainer)
      - `index_routing` (string) — optional
        Value used to route indexing operations to a specific shard.
If specified, this overwrites the `routing` value for indexing operations.
      - `is_hidden` (boolean · default: false) — optional
        If `true`, the alias is hidden.
All indices for the alias must have the same `is_hidden` value.
      - `is_write_index` (boolean · default: false) — optional
        If `true`, the index is the write index for the alias.
      - `routing` (string) — optional
        Value used to route indexing and search operations to a specific shard.
      - `search_routing` (string) — optional
        Value used to route search operations to a specific shard.
If specified, this overwrites the `routing` value for search operations.
    - `mappings` (object) — optional
      Mapping for fields in the index.
If specified, this mapping can include field names, field data types, and mapping parameters.
      Same fields as `mappings` in `template`
    - `settings` (object) — optional
      Configuration options for the index.
      - `index` (object) — optional — recursive
        Same fields as `settings` in `template`
      - `mode` (string) — optional
      - `routing_path` (union string | string[]) — optional
      - `soft_deletes` (object) — optional
        - `enabled` (boolean · default: true) — optional
          Indicates whether soft deletes are enabled on the index.
        - `retention_lease` (object) — optional
          The maximum period to retain a shard history retention lease before it is considered expired.
Shard history retention leases ensure that soft deletes are retained during merges on the Lucene
index. If a soft delete is merged away before it can be replicated to a follower the following
process will fail due to incomplete history on the leader.
          - `period` (union oneOf) — required
            Values: `-1`, `0`
      - `sort` (object) — optional
        - `field` (union oneOf) — optional
          One of: `string[]` or `string`
        - `order` (union enum | enum[]) — optional
          

Supported values include: `asc` (or `ASC`), `desc` (or `DESC`)
          Values: `asc`, `ASC`, `desc`, `DESC`
        - `mode` (union enum | enum[]) — optional
          

Supported values include: `min` (or `MIN`), `max` (or `MAX`)
          Values: `min`, `MIN`, `max`, `MAX`
        - `missing` (union enum | enum[]) — optional
          

Supported values include: `_last`, `_first`
          Values: `_last`, `_first`
      - `number_of_shards` (number | string · default: 1) — optional
      - `number_of_replicas` (number | string · default: 0) — optional
      - `number_of_routing_shards` (number) — optional
      - `check_on_startup` (enum · default: false) — optional
        Values: `true`, `false`, `checksum`
      - `codec` (string · default: LZ4) — optional
      - `routing_partition_size` (number | string · default: 1) — optional
      - `load_fixed_bitset_filters_eagerly` (boolean · default: true) — optional
      - `hidden` (boolean | string · default: false) — optional
      - `auto_expand_replicas` (union string · default: false) — optional — nullable
      - `merge` (object) — optional
        - `scheduler` (object) — optional
          - `max_thread_count` (number | string) — optional
          - `max_merge_count` (number | string) — optional
      - `search` (object) — optional
        Same fields as `search` in `settings`
      - `refresh_interval` (union oneOf · default: 1s) — optional
        Values: `-1`, `0`
      - `max_result_window` (number | string · default: 10000) — optional
      - `max_inner_result_window` (number · default: 100) — optional
      - `max_rescore_window` (number · default: 10000) — optional
      - `max_docvalue_fields_search` (number · default: 100) — optional
      - `max_script_fields` (number · default: 32) — optional
      - `max_ngram_diff` (number · default: 1) — optional
      - `max_shingle_diff` (number · default: 3) — optional
      - `blocks` (object) — optional
        - `read_only` (boolean | string) — optional
        - `read_only_allow_delete` (boolean | string) — optional
        - `read` (boolean | string) — optional
        - `write` (boolean | string) — optional
        - `metadata` (boolean | string) — optional
      - `max_refresh_listeners` (number) — optional
      - `analyze` (object) — optional
        Settings to define analyzers, tokenizers, token filters and character filters.
        - `max_token_count` (number | string · default: 10000) — optional
      - `highlight` (object) — optional
        - `max_analyzed_offset` (number · default: 1000000) — optional
      - `max_terms_count` (number · default: 65536) — optional
      - `max_regex_length` (number · default: 1000) — optional
      - `routing` (object) — optional
        Same fields as `routing` in `settings`
      - `unassigned` (object) — optional
        - `node_left` (object) — optional
          - `delayed_timeout` (union oneOf · default: 1m) — optional
            The amount of time to wait for a node that has left before assuming its
shards are permanently missing and starting to allocate replacement replicas.
            Values: `-1`, `0`
      - `gc_deletes` (union oneOf · default: 60s) — optional
        Values: `-1`, `0`
      - `default_pipeline` (string · default: _none) — optional
      - `final_pipeline` (string · default: _none) — optional
      - `lifecycle` (object) — optional
        - `name` (string) — optional
          The name of the policy to use to manage the index. For information about how Elasticsearch applies policy changes, see Policy updates.
        - `indexing_complete` (boolean | string · default: false) — optional
          Indicates whether or not the index has been rolled over. Automatically set to true when ILM completes the rollover action.
You can explicitly set it to skip rollover.
        - `origination_date` (number · default: 0) — optional
          If specified, this is the timestamp used to calculate the index age for its phase transitions. Use this setting
if you create a new index that contains old data and want to use the original creation date to calculate the index
age. Specified as a Unix epoch value in milliseconds.
        - `parse_origination_date` (boolean) — optional
          Set to true to parse the origination date from the index name. This origination date is used to calculate the index age
for its phase transitions. The index name must match the pattern ^.*-{date_format}-\\d+, where the date_format is
yyyy.MM.dd and the trailing digits are optional. An index that was rolled over would normally match the full format,
for example logs-2016.10.31-000002). If the index name doesn’t match the pattern, index creation fails.
        - `step` (object) — optional
          - `wait_time_threshold` (union oneOf) — optional
            Time to wait for the cluster to resolve allocation issues during an ILM shrink action. Must be greater than 1h (1 hour).
See Shard allocation for shrink.
            Values: `-1`, `0`
        - `rollover_alias` (string) — optional
          The index alias to update when the index rolls over. Specify when using a policy that contains a rollover action.
When the index rolls over, the alias is updated to reflect that the index is no longer the write index. For more
information about rolling indices, see Rollover.
        - `prefer_ilm` (boolean | string · default: true) — optional
          Preference for the system that manages a data stream backing index (preferring ILM when both ILM and DLM are
applicable for an index).
      - `provided_name` (string) — optional
      - `creation_date` (union oneOf) — optional
        One of: `number` or `string`
      - `creation_date_string` (union oneOf) — optional
        One of: `string` or `number`
      - `uuid` (string) — optional
      - `version` (object) — optional
        - `created` (string) — optional
        - `created_string` (string) — optional
      - `verified_before_close` (boolean | string) — optional
      - `format` (number | string) — optional
      - `max_slices_per_scroll` (number) — optional
      - `translog` (object) — optional
        - `sync_interval` (union oneOf · default: 5s) — optional
          How often the translog is fsynced to disk and committed, regardless of write operations.
Values less than 100ms are not allowed.
          Values: `-1`, `0`
        - `durability` (enum · default: string) — optional
          Whether or not to `fsync` and commit the translog after every index, delete, update, or bulk request.

Supported values include:
  - `request` (or `REQUEST`): (default) fsync and commit after every request. In the event of hardware failure, all acknowledged writes
will already have been committed to disk.
  - `async` (or `ASYNC`): fsync and commit in the background every sync_interval. In the event of a failure, all acknowledged writes
since the last automatic commit will be discarded.
          Values: `request`, `REQUEST`, `async`, `ASYNC`
        - `flush_threshold_size` (number | string · default: 512mb) — optional
          The translog stores all operations that are not yet safely persisted in Lucene (i.e., are not
part of a Lucene commit point). Although these operations are available for reads, they will need
to be replayed if the shard was stopped and had to be recovered. This setting controls the
maximum total size of these operations, to prevent recoveries from taking too long. Once the
maximum size has been reached a flush will happen, generating a new Lucene commit point.
        - `retention` (object) — optional
          - `size` (number | string · default: 512mb) — optional
            This controls the total size of translog files to keep for each shard. Keeping more translog files increases
the chance of performing an operation based sync when recovering a replica. If the translog files are not
sufficient, replica recovery will fall back to a file based sync. This setting is ignored, and should not be
set, if soft deletes are enabled. Soft deletes are enabled by default in indices created in Elasticsearch
versions 7.0.0 and later.
          - `age` (union oneOf · default: 12h) — optional
            This controls the maximum duration for which translog files are kept by each shard. Keeping more
translog files increases the chance of performing an operation based sync when recovering replicas. If
the translog files are not sufficient, replica recovery will fall back to a file based sync. This setting
is ignored, and should not be set, if soft deletes are enabled. Soft deletes are enabled by default in
indices created in Elasticsearch versions 7.0.0 and later.
            Values: `-1`, `0`
      - `query_string` (object) — optional
        - `lenient` (boolean | string) — required
      - `priority` (number | string) — optional
      - `top_metrics_max_size` (number) — optional
      - `analysis` (object) — optional
        Same fields as `analysis` in `settings`
      - `settings` (object) — optional — recursive
        Same fields as `settings` in `template`
      - `time_series` (object) — optional
        - `end_time` (union oneOf) — optional
          One of: `string` or `number`
        - `start_time` (union oneOf) — optional
          One of: `string` or `number`
      - `queries` (object) — optional
        - `cache` (object) — optional
          - `enabled` (boolean) — required
      - `requests` (object) — optional
        - `cache` (object) — optional
          - `enable` (boolean | string · default: true) — optional
            Whether the shard request cache is enabled for the index.
This setting is dynamic and can be updated on an existing index.
      - `similarity` (map string to oneOf) — optional
        Configure custom similarity settings to customize how search results are scored.
        Map values (union oneOf)
        One of:
        - **type: BM25** (`type: BM25`)
          - `type` (enum) — required
            Values: `BM25`
          - `b` (number) — optional
          - `discount_overlaps` (boolean) — optional
          - `k1` (number) — optional
        - **type: boolean** (`type: boolean`)
          - `type` (enum) — required
            Values: `boolean`
        - **type: DFI** (`type: DFI`)
          - `type` (enum) — required
            Values: `DFI`
          - `independence_measure` (enum) — required
            Values: `standardized`, `saturated`, `chisquared`
        - **type: DFR** (`type: DFR`)
          - `type` (enum) — required
            Values: `DFR`
          - `after_effect` (enum) — required
            Values: `no`, `b`, `l`
          - `basic_model` (enum) — required
            Values: `be`, `d`, `g`, `if`, `in`, `ine`, `p`
          - `normalization` (enum) — required
            Values: `no`, `h1`, `h2`, `h3`, `z`
        - **type: IB** (`type: IB`)
          - `type` (enum) — required
            Values: `IB`
          - `distribution` (enum) — required
            Values: `ll`, `spl`
          - `lambda` (enum) — required
            Values: `df`, `ttf`
          - `normalization` (enum) — required
            Values: `no`, `h1`, `h2`, `h3`, `z`
        - **type: LMDirichlet** (`type: LMDirichlet`)
          - `type` (enum) — required
            Values: `LMDirichlet`
          - `mu` (number) — optional
        - **type: LMJelinekMercer** (`type: LMJelinekMercer`)
          - `type` (enum) — required
            Values: `LMJelinekMercer`
          - `lambda` (number) — optional
        - **type: scripted** (`type: scripted`)
          - `type` (enum) — required
            Values: `scripted`
          - `script` (string) — required
          - `weight_script` (string) — optional
      - `mapping` (object) — optional
        Enable or disable dynamic mapping for an index.
        Same fields as `mapping` in `settings`
      - `indexing.slowlog` (object) — optional
        - `level` (string) — optional
        - `source` (number) — optional
        - `reformat` (boolean) — optional
        - `threshold` (object) — optional
          - `index` (object) — optional
            The indexing slow log, similar in functionality to the search slow log. The log file name ends with `_index_indexing_slowlog.json`.
Log and the thresholds are configured in the same way as the search slowlog.
            - `warn` (union oneOf) — optional
              Values: `-1`, `0`
            - `info` (union oneOf) — optional
              Values: `-1`, `0`
            - `debug` (union oneOf) — optional
              Values: `-1`, `0`
            - `trace` (union oneOf) — optional
              Values: `-1`, `0`
      - `indexing_pressure` (object) — optional
        Configure indexing back pressure limits.
        - `memory` (object) — required
          - `limit` (number) — optional
            Number of outstanding bytes that may be consumed by indexing requests. When this limit is reached or exceeded,
the node will reject new coordinating and primary operations. When replica operations consume 1.5x this limit,
the node will reject new replica operations. Defaults to 10% of the heap.
      - `store` (object) — optional
        The store module allows you to control how index data is stored and accessed on disk.
        - `type` (union anyOf) — optional
          

Supported values include:
  - `fs`: Default file system implementation. This will pick the best implementation depending on the operating environment, which
is currently hybridfs on all supported systems but is subject to change.
  - `niofs`: The NIO FS type stores the shard index on the file system (maps to Lucene NIOFSDirectory) using NIO. It allows multiple
threads to read from the same file concurrently. It is not recommended on Windows because of a bug in the SUN Java
implementation and disables some optimizations for heap memory usage.
  - `mmapfs`: The MMap FS type stores the shard index on the file system (maps to Lucene MMapDirectory) by mapping a file into
memory (mmap). Memory mapping uses up a portion of the virtual memory address space in your process equal to the size
of the file being mapped. Before using this class, be sure you have allowed plenty of virtual address space.
  - `hybridfs`: The hybridfs type is a hybrid of niofs and mmapfs, which chooses the best file system type for each type of file
based on the read access pattern. Currently only the Lucene term dictionary, norms and doc values files are memory
mapped. All other files are opened using Lucene NIOFSDirectory. Similarly to mmapfs be sure you have allowed
plenty of virtual address space.
          Values: `fs`, `niofs`, `mmapfs`, `hybridfs`
        - `allow_mmap` (boolean) — optional
          You can restrict the use of the mmapfs and the related hybridfs store type via the setting node.store.allow_mmap.
This is a boolean setting indicating whether or not memory-mapping is allowed. The default is to allow it. This
setting is useful, for example, if you are in an environment where you can not control the ability to create a lot
of memory maps so you need disable the ability to use memory-mapping.
        - `stats_refresh_interval` (union oneOf) — optional
          How often store statistics are refreshed
          Values: `-1`, `0`
    - `lifecycle` (object) — optional
      Same fields as `lifecycle` in `template`
    - `data_stream_options` (object) — optional
      - `failure_store` (object) — optional
        If defined, it specifies configuration for the failure store of this data stream.
        - `enabled` (boolean · default: true) — optional
          If defined, it turns the failure store on/off (`true`/`false`) for this data stream. A data stream failure store
that's disabled (enabled: `false`) will redirect no new failed indices to the failure store; however, it will
not remove any existing data from the failure store.
        - `lifecycle` (object) — optional
          If defined, it specifies the lifecycle configuration for the failure store of this data stream.
          - `data_retention` (union oneOf) — optional
            If defined, every document added to this data stream will be stored at least for this time frame.
Any time after this duration the document could be deleted.
When empty, every document in this data stream will be stored indefinitely.
            Values: `-1`, `0`
          - `enabled` (boolean · default: true) — optional
            If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle
that's disabled (enabled: `false`) will have no effect on the data stream.
  - `version` (number) — optional
    Version number used to manage index templates externally.
This number is not automatically generated by Elasticsearch.
  - `priority` (number) — optional
    Priority to determine index template precedence when a new data stream or index is created.
The index template with the highest priority is chosen.
If no priority is specified the template is treated as though it is of priority 0 (lowest priority).
This number is not automatically generated by Elasticsearch.
  - `_meta` (object) — optional
    Optional user metadata about the index template. May have any contents.
This map is not automatically generated by Elasticsearch.
  - `allow_auto_create` (boolean) — optional
  - `data_stream` (object) — optional
    If this object is included, the template is used to create data streams and their backing indices.
Supports an empty object.
Data streams require a matching index template with a `data_stream` object.
    - `hidden` (boolean · default: false) — optional
      If true, the data stream is hidden.
    - `allow_custom_routing` (boolean · default: false) — optional
      If true, the data stream supports custom routing.
  - `deprecated` (boolean) — optional
    Marks this index template as deprecated.
When creating or updating a non-deprecated index template that uses deprecated components,
Elasticsearch will emit a deprecation warning.
  - `ignore_missing_component_templates` (union oneOf) — optional
    A list of component template names that are allowed to be absent.
    One of: `string[]` or `string`
- `mapping_addition` (object) — optional
  Same fields as `mappings` in `template`
- `pipeline_substitutions` (map string to object) — optional
  Pipelines to test.
If you don’t specify the `pipeline` request path parameter, this parameter is required.
If you specify both this and the request path parameter, the API only uses the request path parameter.
  Map values (object)
  - `description` (string) — optional
    Description of the ingest pipeline.
  - `on_failure` ({} Processor[]) — optional
    Processors to run immediately after a processor failure.
    See [Processor](https://www.elastic.co/docs/api/doc/elasticsearch/v8/types/ingest-_types-processorcontainer)
  - `processors` ({} Processor[]) — optional
    Processors used to perform transformations on documents before indexing.
Processors run sequentially in the order specified.
    See [Processor](https://www.elastic.co/docs/api/doc/elasticsearch/v8/types/ingest-_types-processorcontainer)
  - `version` (number) — optional
    Version number used by external systems to track ingest pipelines.
  - `deprecated` (boolean · default: false) — optional
    Marks this ingest pipeline as deprecated.
When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning.
  - `_meta` (object) — optional
    Arbitrary metadata about the ingest pipeline. This map is not automatically generated by Elasticsearch.

## Response

`application/json`

- `docs` (object[])
  - `doc` (object)
    - `_id` (string)
      Identifier for the document.
    - `_index` (string)
      Name of the index that the document would be indexed into if this were not a simulation.
    - `_source` (map string to object)
      JSON body for the document.
    - `_version` (union oneOf)
      One of: `number` or `string`
    - `executed_pipelines` (string[])
      A list of the names of the pipelines executed on this document.
    - `ignored_fields` (string to string[])
      A list of the fields that would be ignored at the indexing step. For example, a field whose
value is larger than the allowed limit would make it through all of the pipelines, but
would not be indexed into Elasticsearch.
    - `error` (object)
      Any error resulting from simulatng ingest on this doc. This can be an error generated by
executing a processor, or a mapping validation error when simulating indexing the resulting
doc.
      - `type` (string)
        The type of error
      - `reason` (union string) — nullable
        A human-readable explanation of the error, in English.
        One of: `string`
      - `stack_trace` (string)
        The server stack trace. Present only if the `error_trace=true` parameter was sent with the request.
      - `caused_by` (object) — recursive
        Same fields as `error` in `doc`
      - `root_cause` (object[]) — recursive
        Same fields as `error` in `doc`
      - `suppressed` (object[]) — recursive
        Same fields as `error` in `doc`
## Code examples

### Existing pipeline definitions

#### Console

```console
POST /_ingest/_simulate
{
  "docs": [
    {
      "_id": "123",
      "_index": "my-index",
      "_source": {
        "foo": "bar"
      }
    },
    {
      "_id": "456",
      "_index": "my-index",
      "_source": {
        "foo": "rab"
      }
    }
  ]
}
```

#### JavaScript

```javascript
const response = await client.simulate.ingest({
  docs: [
    {
      _id: "123",
      _index: "my-index",
      _source: {
        foo: "bar",
      },
    },
    {
      _id: "456",
      _index: "my-index",
      _source: {
        foo: "rab",
      },
    },
  ],
});
```

#### Python

```python
resp = client.simulate.ingest(
    docs=[
        {
            "_id": "123",
            "_index": "my-index",
            "_source": {
                "foo": "bar"
            }
        },
        {
            "_id": "456",
            "_index": "my-index",
            "_source": {
                "foo": "rab"
            }
        }
    ],
)
```

#### curl

```curl
curl -X POST "$ELASTICSEARCH_URL/_ingest/_simulate" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "docs": [
      {
        "_id": "123",
        "_index": "my-index",
        "_source": {
          "foo": "bar"
        }
      },
      {
        "_id": "456",
        "_index": "my-index",
        "_source": {
          "foo": "rab"
        }
      }
    ]
  }'
```

#### Java

```java
client.simulate().ingest(i -> i
    .docs(List.of(Document.of(d -> d
            .id("123")
            .index("my-index")
            .source(JsonData.fromJson("{\"foo\":\"bar\"}"))),Document.of(d -> d
            .id("456")
            .index("my-index")
            .source(JsonData.fromJson("{\"foo\":\"rab\"}")))))
);
```

#### C#

```c#
var response = await client.Simulate
    .IngestAsync(d1 => d1
        .Docs(d2 => d2
            .Id("123")
            .Index("my-index")
            .Source(JsonSerializer.Deserialize<JsonElement>("""
            {
              "foo": "bar"
            }
            """)), d2 => d2
            .Id("456")
            .Index("my-index")
            .Source(JsonSerializer.Deserialize<JsonElement>("""
            {
              "foo": "rab"
            }
            """))
        )
    );
```

#### PHP

```php
$resp = $client->simulate()->ingest([
    "body" => [
        "docs" => array(
            [
                "_id" => "123",
                "_index" => "my-index",
                "_source" => [
                    "foo" => "bar",
                ],
            ],
            [
                "_id" => "456",
                "_index" => "my-index",
                "_source" => [
                    "foo" => "rab",
                ],
            ],
        ),
    ],
]);
```

#### Ruby

```ruby
response = client.simulate.ingest(
  body: {
    "docs": [
      {
        "_id": "123",
        "_index": "my-index",
        "_source": {
          "foo": "bar"
        }
      },
      {
        "_id": "456",
        "_index": "my-index",
        "_source": {
          "foo": "rab"
        }
      }
    ]
  }
)
```

### Pipeline substitions

#### Console

```console
POST /_ingest/_simulate
{
  "docs": [
    {
      "_index": "my-index",
      "_id": "123",
      "_source": {
        "foo": "bar"
      }
    },
    {
      "_index": "my-index",
      "_id": "456",
      "_source": {
        "foo": "rab"
      }
    }
  ],
  "pipeline_substitutions": {
    "my-pipeline": {
      "processors": [
        {
          "uppercase": {
            "field": "foo"
          }
        }
      ]
    }
  }
}
```

#### JavaScript

```javascript
const response = await client.simulate.ingest({
  docs: [
    {
      _index: "my-index",
      _id: "123",
      _source: {
        foo: "bar",
      },
    },
    {
      _index: "my-index",
      _id: "456",
      _source: {
        foo: "rab",
      },
    },
  ],
  pipeline_substitutions: {
    "my-pipeline": {
      processors: [
        {
          uppercase: {
            field: "foo",
          },
        },
      ],
    },
  },
});
```

#### Python

```python
resp = client.simulate.ingest(
    docs=[
        {
            "_index": "my-index",
            "_id": "123",
            "_source": {
                "foo": "bar"
            }
        },
        {
            "_index": "my-index",
            "_id": "456",
            "_source": {
                "foo": "rab"
            }
        }
    ],
    pipeline_substitutions={
        "my-pipeline": {
            "processors": [
                {
                    "uppercase": {
                        "field": "foo"
                    }
                }
            ]
        }
    },
)
```

#### curl

```curl
curl -X POST "$ELASTICSEARCH_URL/_ingest/_simulate" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "docs": [
      {
        "_index": "my-index",
        "_id": "123",
        "_source": {
          "foo": "bar"
        }
      },
      {
        "_index": "my-index",
        "_id": "456",
        "_source": {
          "foo": "rab"
        }
      }
    ],
    "pipeline_substitutions": {
      "my-pipeline": {
        "processors": [
          {
            "uppercase": {
              "field": "foo"
            }
          }
        ]
      }
    }
  }'
```

#### Java

```java
client.simulate().ingest(i -> i
    .docs(List.of(Document.of(d -> d
            .id("123")
            .index("my-index")
            .source(JsonData.fromJson("{\"foo\":\"bar\"}"))),Document.of(d -> d
            .id("456")
            .index("my-index")
            .source(JsonData.fromJson("{\"foo\":\"rab\"}")))))
    .pipelineSubstitutions("my-pipeline", p -> p
        .processors(pr -> pr
            .uppercase(u -> u
                .field("foo")
            )
        )
    )
);
```

#### C#

```c#
var response = await client.Simulate
    .IngestAsync(d1 => d1
        .Docs(d2 => d2
            .Id("123")
            .Index("my-index")
            .Source(JsonSerializer.Deserialize<JsonElement>("""
            {
              "foo": "bar"
            }
            """)), d2 => d2
            .Id("456")
            .Index("my-index")
            .Source(JsonSerializer.Deserialize<JsonElement>("""
            {
              "foo": "rab"
            }
            """))
        )
        .PipelineSubstitutions(d2 => d2
            .Add("my-pipeline", d3 => d3
                .Processors(d4 => d4
                    .Uppercase(d5 => d5
                        .Field(x => x.Foo)
                    )
                )
            )
        )
    );
```

#### PHP

```php
$resp = $client->simulate()->ingest([
    "body" => [
        "docs" => array(
            [
                "_index" => "my-index",
                "_id" => "123",
                "_source" => [
                    "foo" => "bar",
                ],
            ],
            [
                "_index" => "my-index",
                "_id" => "456",
                "_source" => [
                    "foo" => "rab",
                ],
            ],
        ),
        "pipeline_substitutions" => [
            "my-pipeline" => [
                "processors" => array(
                    [
                        "uppercase" => [
                            "field" => "foo",
                        ],
                    ],
                ),
            ],
        ],
    ],
]);
```

#### Ruby

```ruby
response = client.simulate.ingest(
  body: {
    "docs": [
      {
        "_index": "my-index",
        "_id": "123",
        "_source": {
          "foo": "bar"
        }
      },
      {
        "_index": "my-index",
        "_id": "456",
        "_source": {
          "foo": "rab"
        }
      }
    ],
    "pipeline_substitutions": {
      "my-pipeline": {
        "processors": [
          {
            "uppercase": {
              "field": "foo"
            }
          }
        ]
      }
    }
  }
)
```

### Component template substitutions

#### Console

```console
POST /_ingest/_simulate
{
  "docs": [
    {
      "_index": "my-index",
      "_id": "123",
      "_source": {
        "foo": "foo"
      }
    },
    {
      "_index": "my-index",
      "_id": "456",
      "_source": {
        "bar": "rab"
      }
    }
  ],
  "component_template_substitutions": {
    "my-mappings_template": {
      "template": {
        "mappings": {
          "dynamic": "strict",
          "properties": {
            "foo": {
              "type": "keyword"
            },
            "bar": {
              "type": "keyword"
            }
          }
        }
      }
    }
  }
}
```

#### JavaScript

```javascript
const response = await client.simulate.ingest({
  docs: [
    {
      _index: "my-index",
      _id: "123",
      _source: {
        foo: "foo",
      },
    },
    {
      _index: "my-index",
      _id: "456",
      _source: {
        bar: "rab",
      },
    },
  ],
  component_template_substitutions: {
    "my-mappings_template": {
      template: {
        mappings: {
          dynamic: "strict",
          properties: {
            foo: {
              type: "keyword",
            },
            bar: {
              type: "keyword",
            },
          },
        },
      },
    },
  },
});
```

#### Python

```python
resp = client.simulate.ingest(
    docs=[
        {
            "_index": "my-index",
            "_id": "123",
            "_source": {
                "foo": "foo"
            }
        },
        {
            "_index": "my-index",
            "_id": "456",
            "_source": {
                "bar": "rab"
            }
        }
    ],
    component_template_substitutions={
        "my-mappings_template": {
            "template": {
                "mappings": {
                    "dynamic": "strict",
                    "properties": {
                        "foo": {
                            "type": "keyword"
                        },
                        "bar": {
                            "type": "keyword"
                        }
                    }
                }
            }
        }
    },
)
```

#### curl

```curl
curl -X POST "$ELASTICSEARCH_URL/_ingest/_simulate" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "docs": [
      {
        "_index": "my-index",
        "_id": "123",
        "_source": {
          "foo": "foo"
        }
      },
      {
        "_index": "my-index",
        "_id": "456",
        "_source": {
          "bar": "rab"
        }
      }
    ],
    "component_template_substitutions": {
      "my-mappings_template": {
        "template": {
          "mappings": {
            "dynamic": "strict",
            "properties": {
              "foo": {
                "type": "keyword"
              },
              "bar": {
                "type": "keyword"
              }
            }
          }
        }
      }
    }
  }'
```

#### Java

```java
client.simulate().ingest(i -> i
    .componentTemplateSubstitutions("my-mappings_template", c -> c
        .template(t -> t
            .mappings(m -> m
                .dynamic(DynamicMapping.Strict)
                .properties(Map.of("bar", Property.of(p -> p
                        .keyword(k -> k
                    )),"foo", Property.of(pr -> pr
                        .keyword(k -> k
                    ))))
            )
        )
    )
    .docs(List.of(Document.of(d -> d
            .id("123")
            .index("my-index")
            .source(JsonData.fromJson("{\"foo\":\"foo\"}"))),Document.of(d -> d
            .id("456")
            .index("my-index")
            .source(JsonData.fromJson("{\"bar\":\"rab\"}")))))
);
```

#### C#

```c#
var response = await client.Simulate
    .IngestAsync(d1 => d1
        .ComponentTemplateSubstitutions(d2 => d2
            .Add("my-mappings_template", d3 => d3
                .Template(d4 => d4
                    .Mappings(d5 => d5
                        .Dynamic(DynamicMapping.Strict)
                        .Properties(d6 => d6
                            .Keyword(x => x.Foo)
                            .Keyword(x => x.Bar)
                        )
                    )
                )
            )
        )
        .Docs(d2 => d2
            .Id("123")
            .Index("my-index")
            .Source(JsonSerializer.Deserialize<JsonElement>("""
            {
              "foo": "foo"
            }
            """)), d2 => d2
            .Id("456")
            .Index("my-index")
            .Source(JsonSerializer.Deserialize<JsonElement>("""
            {
              "bar": "rab"
            }
            """))
        )
    );
```

#### PHP

```php
$resp = $client->simulate()->ingest([
    "body" => [
        "docs" => array(
            [
                "_index" => "my-index",
                "_id" => "123",
                "_source" => [
                    "foo" => "foo",
                ],
            ],
            [
                "_index" => "my-index",
                "_id" => "456",
                "_source" => [
                    "bar" => "rab",
                ],
            ],
        ),
        "component_template_substitutions" => [
            "my-mappings_template" => [
                "template" => [
                    "mappings" => [
                        "dynamic" => "strict",
                        "properties" => [
                            "foo" => [
                                "type" => "keyword",
                            ],
                            "bar" => [
                                "type" => "keyword",
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ],
]);
```

#### Ruby

```ruby
response = client.simulate.ingest(
  body: {
    "docs": [
      {
        "_index": "my-index",
        "_id": "123",
        "_source": {
          "foo": "foo"
        }
      },
      {
        "_index": "my-index",
        "_id": "456",
        "_source": {
          "bar": "rab"
        }
      }
    ],
    "component_template_substitutions": {
      "my-mappings_template": {
        "template": {
          "mappings": {
            "dynamic": "strict",
            "properties": {
              "foo": {
                "type": "keyword"
              },
              "bar": {
                "type": "keyword"
              }
            }
          }
        }
      }
    }
  }
)
```

### Multiple substitutions

#### Console

```console
POST /_ingest/_simulate
{
  "docs": [
    {
      "_id": "id",
      "_index": "my-index",
      "_source": {
        "foo": "bar"
      }
    },
    {
      "_id": "id",
      "_index": "my-index",
      "_source": {
        "foo": "rab"
      }
    }
  ],
  "pipeline_substitutions": {
    "my-pipeline": {
      "processors": [
        {
          "set": {
            "field": "field3",
            "value": "value3"
          }
        }
      ]
    }
  },
  "component_template_substitutions": {
    "my-component-template": {
      "template": {
        "mappings": {
          "dynamic": true,
          "properties": {
            "field3": {
              "type": "keyword"
            }
          }
        },
        "settings": {
          "index": {
            "default_pipeline": "my-pipeline"
          }
        }
      }
    }
  },
  "index_template_substitutions": {
    "my-index-template": {
      "index_patterns": [
        "my-index-*"
      ],
      "composed_of": [
        "component_template_1",
        "component_template_2"
      ]
    }
  },
  "mapping_addition": {
    "dynamic": "strict",
    "properties": {
      "foo": {
        "type": "keyword"
      }
    }
  }
}
```

#### JavaScript

```javascript
const response = await client.simulate.ingest({
  docs: [
    {
      _id: "id",
      _index: "my-index",
      _source: {
        foo: "bar",
      },
    },
    {
      _id: "id",
      _index: "my-index",
      _source: {
        foo: "rab",
      },
    },
  ],
  pipeline_substitutions: {
    "my-pipeline": {
      processors: [
        {
          set: {
            field: "field3",
            value: "value3",
          },
        },
      ],
    },
  },
  component_template_substitutions: {
    "my-component-template": {
      template: {
        mappings: {
          dynamic: true,
          properties: {
            field3: {
              type: "keyword",
            },
          },
        },
        settings: {
          index: {
            default_pipeline: "my-pipeline",
          },
        },
      },
    },
  },
  index_template_substitutions: {
    "my-index-template": {
      index_patterns: ["my-index-*"],
      composed_of: ["component_template_1", "component_template_2"],
    },
  },
  mapping_addition: {
    dynamic: "strict",
    properties: {
      foo: {
        type: "keyword",
      },
    },
  },
});
```

#### Python

```python
resp = client.simulate.ingest(
    docs=[
        {
            "_id": "id",
            "_index": "my-index",
            "_source": {
                "foo": "bar"
            }
        },
        {
            "_id": "id",
            "_index": "my-index",
            "_source": {
                "foo": "rab"
            }
        }
    ],
    pipeline_substitutions={
        "my-pipeline": {
            "processors": [
                {
                    "set": {
                        "field": "field3",
                        "value": "value3"
                    }
                }
            ]
        }
    },
    component_template_substitutions={
        "my-component-template": {
            "template": {
                "mappings": {
                    "dynamic": True,
                    "properties": {
                        "field3": {
                            "type": "keyword"
                        }
                    }
                },
                "settings": {
                    "index": {
                        "default_pipeline": "my-pipeline"
                    }
                }
            }
        }
    },
    index_template_substitutions={
        "my-index-template": {
            "index_patterns": [
                "my-index-*"
            ],
            "composed_of": [
                "component_template_1",
                "component_template_2"
            ]
        }
    },
    mapping_addition={
        "dynamic": "strict",
        "properties": {
            "foo": {
                "type": "keyword"
            }
        }
    },
)
```

#### curl

```curl
curl -X POST "$ELASTICSEARCH_URL/_ingest/_simulate" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "docs": [
      {
        "_id": "id",
        "_index": "my-index",
        "_source": {
          "foo": "bar"
        }
      },
      {
        "_id": "id",
        "_index": "my-index",
        "_source": {
          "foo": "rab"
        }
      }
    ],
    "pipeline_substitutions": {
      "my-pipeline": {
        "processors": [
          {
            "set": {
              "field": "field3",
              "value": "value3"
            }
          }
        ]
      }
    },
    "component_template_substitutions": {
      "my-component-template": {
        "template": {
          "mappings": {
            "dynamic": true,
            "properties": {
              "field3": {
                "type": "keyword"
              }
            }
          },
          "settings": {
            "index": {
              "default_pipeline": "my-pipeline"
            }
          }
        }
      }
    },
    "index_template_substitutions": {
      "my-index-template": {
        "index_patterns": [
          "my-index-*"
        ],
        "composed_of": [
          "component_template_1",
          "component_template_2"
        ]
      }
    },
    "mapping_addition": {
      "dynamic": "strict",
      "properties": {
        "foo": {
          "type": "keyword"
        }
      }
    }
  }'
```

#### Java

```java
client.simulate().ingest(i -> i
    .componentTemplateSubstitutions("my-component-template", c -> c
        .template(t -> t
            .settings("index", s -> s
                .defaultPipeline("my-pipeline")
            )
            .mappings(m -> m
                .dynamic(DynamicMapping.True)
                .properties("field3", p -> p
                    .keyword(k -> k)
                )
            )
        )
    )
    .docs(List.of(Document.of(d -> d
            .id("id")
            .index("my-index")
            .source(JsonData.fromJson("{\"foo\":\"bar\"}"))),Document.of(d -> d
            .id("id")
            .index("my-index")
            .source(JsonData.fromJson("{\"foo\":\"rab\"}")))))
    .indexTemplateSubstitutions("my-index-template", in -> in
        .indexPatterns("my-index-*")
        .composedOf(List.of("component_template_1","component_template_2"))
    )
    .mappingAddition(m -> m
        .dynamic(DynamicMapping.Strict)
        .properties("foo", p -> p
            .keyword(k -> k)
        )
    )
    .pipelineSubstitutions("my-pipeline", p -> p
        .processors(pr -> pr
            .set(s -> s
                .field("field3")
                .value(JsonData.fromJson("\"value3\""))
            )
        )
    )
);
```

#### C#

```c#
var response = await client.Simulate
    .IngestAsync(d1 => d1
        .ComponentTemplateSubstitutions(d2 => d2
            .Add("my-component-template", d3 => d3
                .Template(d4 => d4
                    .Mappings(d5 => d5
                        .Dynamic(DynamicMapping.True)
                        .Properties(d6 => d6
                            .Keyword(x => x.Field3)
                        )
                    )
                    .Settings(d5 => d5
                        .Add("index", d6 => d6
                            .DefaultPipeline("my-pipeline")
                        )
                    )
                )
            )
        )
        .Docs(d2 => d2
            .Id("id")
            .Index("my-index")
            .Source(JsonSerializer.Deserialize<JsonElement>("""
            {
              "foo": "bar"
            }
            """)), d2 => d2
            .Id("id")
            .Index("my-index")
            .Source(JsonSerializer.Deserialize<JsonElement>("""
            {
              "foo": "rab"
            }
            """))
        )
        .IndexTemplateSubstitutions(d2 => d2
            .Add("my-index-template", d3 => d3
                .ComposedOf(["component_template_1", "component_template_2"])
                .IndexPatterns(new[] { "my-index-*" })
            )
        )
        .MappingAddition(d2 => d2
            .Dynamic(DynamicMapping.Strict)
            .Properties(d3 => d3
                .Keyword(x => x.Foo)
            )
        )
        .PipelineSubstitutions(d2 => d2
            .Add("my-pipeline", d3 => d3
                .Processors(d4 => d4
                    .Set(d5 => d5
                        .Field(x => x.Field3)
                        .Value("value3")
                    )
                )
            )
        )
    );
```

#### PHP

```php
$resp = $client->simulate()->ingest([
    "body" => [
        "docs" => array(
            [
                "_id" => "id",
                "_index" => "my-index",
                "_source" => [
                    "foo" => "bar",
                ],
            ],
            [
                "_id" => "id",
                "_index" => "my-index",
                "_source" => [
                    "foo" => "rab",
                ],
            ],
        ),
        "pipeline_substitutions" => [
            "my-pipeline" => [
                "processors" => array(
                    [
                        "set" => [
                            "field" => "field3",
                            "value" => "value3",
                        ],
                    ],
                ),
            ],
        ],
        "component_template_substitutions" => [
            "my-component-template" => [
                "template" => [
                    "mappings" => [
                        "dynamic" => true,
                        "properties" => [
                            "field3" => [
                                "type" => "keyword",
                            ],
                        ],
                    ],
                    "settings" => [
                        "index" => [
                            "default_pipeline" => "my-pipeline",
                        ],
                    ],
                ],
            ],
        ],
        "index_template_substitutions" => [
            "my-index-template" => [
                "index_patterns" => array(
                    "my-index-*",
                ),
                "composed_of" => array(
                    "component_template_1",
                    "component_template_2",
                ),
            ],
        ],
        "mapping_addition" => [
            "dynamic" => "strict",
            "properties" => [
                "foo" => [
                    "type" => "keyword",
                ],
            ],
        ],
    ],
]);
```

#### Ruby

```ruby
response = client.simulate.ingest(
  body: {
    "docs": [
      {
        "_id": "id",
        "_index": "my-index",
        "_source": {
          "foo": "bar"
        }
      },
      {
        "_id": "id",
        "_index": "my-index",
        "_source": {
          "foo": "rab"
        }
      }
    ],
    "pipeline_substitutions": {
      "my-pipeline": {
        "processors": [
          {
            "set": {
              "field": "field3",
              "value": "value3"
            }
          }
        ]
      }
    },
    "component_template_substitutions": {
      "my-component-template": {
        "template": {
          "mappings": {
            "dynamic": true,
            "properties": {
              "field3": {
                "type": "keyword"
              }
            }
          },
          "settings": {
            "index": {
              "default_pipeline": "my-pipeline"
            }
          }
        }
      }
    },
    "index_template_substitutions": {
      "my-index-template": {
        "index_patterns": [
          "my-index-*"
        ],
        "composed_of": [
          "component_template_1",
          "component_template_2"
        ]
      }
    },
    "mapping_addition": {
      "dynamic": "strict",
      "properties": {
        "foo": {
          "type": "keyword"
        }
      }
    }
  }
)
```

## Response examples

#### Use an existing pipeline definition

`application/json`

A successful response when the simulation uses pipeline definitions that are already in the system.

```json
{
  "docs": [
    {
      "doc": null,
      "_id": 123,
      "_index": "my-index",
      "_version": -3,
      "_source": {
        "field1": "value1",
        "field2": "value2",
        "foo": "bar"
      },
      "executed_pipelines": [
        "my-pipeline",
        "my-final-pipeline"
      ]
    },
    {
      "doc": null,
      "_id": 456,
      "_index": "my-index",
      "_version": "-3,",
      "_source": {
        "field1": "value1",
        "field2": "value2",
        "foo": "rab"
      },
      "executed_pipelines": [
        "my-pipeline",
        "my-final-pipeline"
      ]
    }
  ]
}
```

#### Use pipeline substitutions

`application/json`

A successful response when the simulation uses pipeline substitutions.

```json
{
  "docs": [
    {
      "doc": null,
      "_id": 123,
      "_index": "my-index",
      "_version": -3,
      "_source": {
        "field2": "value2",
        "foo": "BAR"
      },
      "executed_pipelines": [
        "my-pipeline",
        "my-final-pipeline"
      ]
    },
    {
      "doc": null,
      "_id": 456,
      "_index": "my-index",
      "_version": -3,
      "_source": {
        "field2": "value2",
        "foo": "RAB"
      },
      "executed_pipelines": [
        "my-pipeline",
        "my-final-pipeline"
      ]
    }
  ]
}
```

#### Use pipeline substitutions

`application/json`

A successful response when the simulation uses pipeline substitutions.

```json
{
  "docs": [
    {
      "doc": {
        "_id": "123",
        "_index": "my-index",
        "_version": -3,
        "_source": {
          "foo": "foo"
        },
        "executed_pipelines": []
      }
    },
    {
      "doc": {
        "_id": "456",
        "_index": "my-index",
        "_version": -3,
        "_source": {
          "bar": "rab"
        },
      "executed_pipelines": []
      }
    }
  ]
}
```

