Elastic · Schema
indices._types.IndexSettings
SearchAnalyticsObservabilitySecurityVisualizationCloudMonitoring
Properties
| Name | Type | Description |
|---|---|---|
| index | object | |
| mode | string | |
| routing_path | object | |
| soft_deletes | object | |
| sort | object | |
| number_of_shards | object | |
| number_of_replicas | object | |
| number_of_routing_shards | number | |
| check_on_startup | object | |
| codec | string | |
| routing_partition_size | object | |
| load_fixed_bitset_filters_eagerly | boolean | |
| hidden | object | |
| auto_expand_replicas | object | |
| merge | object | |
| search | object | |
| refresh_interval | object | |
| max_result_window | number | |
| max_inner_result_window | number | |
| max_rescore_window | number | |
| max_docvalue_fields_search | number | |
| max_script_fields | number | |
| max_ngram_diff | number | |
| max_shingle_diff | number | |
| blocks | object | |
| max_refresh_listeners | number | |
| analyze | object | Settings to define analyzers, tokenizers, token filters and character filters. Refer to the linked documentation for step-by-step examples of updating analyzers on existing indices. |
| highlight | object | |
| max_terms_count | number | |
| max_regex_length | number | |
| routing | object | |
| gc_deletes | object | |
| default_pipeline | object | |
| final_pipeline | object | |
| lifecycle | object | |
| provided_name | object | |
| creation_date | object | |
| creation_date_string | object | |
| uuid | object | |
| version | object | |
| verified_before_close | object | |
| format | object | |
| max_slices_per_scroll | number | |
| translog | object | |
| query_string | object | |
| priority | object | |
| top_metrics_max_size | number | |
| analysis | object | |
| settings | object | |
| time_series | object | |
| queries | object | |
| similarity | object | Configure custom similarity settings to customize how search results are scored. |
| mapping | object | Enable or disable dynamic mapping for an index. |
| indexing.slowlog | object | |
| indexing_pressure | object | Configure indexing back pressure limits. |
| store | object | The store module allows you to control how index data is stored and accessed on disk. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/elastic/json-schema/elastic-indices-types-index-settings-schema.json",
"title": "indices._types.IndexSettings",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/elastic-indices-api-openapi.yml#/components/schemas/indices._types.IndexSettings",
"type": "object",
"properties": {
"index": {
"allOf": [
{
"$ref": "#/$defs/indices._types.IndexSettings"
}
]
},
"mode": {
"type": "string"
},
"routing_path": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
},
"soft_deletes": {
"allOf": [
{
"$ref": "#/$defs/indices._types.SoftDeletes"
}
]
},
"sort": {
"allOf": [
{
"$ref": "#/$defs/indices._types.IndexSegmentSort"
}
]
},
"number_of_shards": {
"default": "1",
"x-state": "Generally available",
"oneOf": [
{
"type": "number"
},
{
"type": "string"
}
]
},
"number_of_replicas": {
"default": "0",
"x-state": "Generally available",
"oneOf": [
{
"type": "number"
},
{
"type": "string"
}
]
},
"number_of_routing_shards": {
"type": "number"
},
"check_on_startup": {
"default": "false",
"allOf": [
{
"$ref": "#/$defs/indices._types.IndexCheckOnStartup"
}
]
},
"codec": {
"default": "LZ4",
"type": "string"
},
"routing_partition_size": {
"default": "1",
"allOf": [
{
"$ref": "#/$defs/_spec_utils.Stringifiedinteger"
}
]
},
"load_fixed_bitset_filters_eagerly": {
"default": true,
"type": "boolean"
},
"hidden": {
"default": "false",
"oneOf": [
{
"type": "boolean"
},
{
"type": "string"
}
]
},
"auto_expand_replicas": {
"default": "false",
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/$defs/_spec_utils.NullValue"
}
]
},
"merge": {
"allOf": [
{
"$ref": "#/$defs/indices._types.Merge"
}
]
},
"search": {
"allOf": [
{
"$ref": "#/$defs/indices._types.SettingsSearch"
}
]
},
"refresh_interval": {
"default": "1s",
"allOf": [
{
"$ref": "#/$defs/_types.Duration"
}
]
},
"max_result_window": {
"default": 10000.0,
"type": "number"
},
"max_inner_result_window": {
"default": 100.0,
"type": "number"
},
"max_rescore_window": {
"default": 10000.0,
"type": "number"
},
"max_docvalue_fields_search": {
"default": 100.0,
"type": "number"
},
"max_script_fields": {
"default": 32.0,
"type": "number"
},
"max_ngram_diff": {
"default": 1.0,
"type": "number"
},
"max_shingle_diff": {
"default": 3.0,
"type": "number"
},
"blocks": {
"allOf": [
{
"$ref": "#/$defs/indices._types.IndexSettingBlocks"
}
]
},
"max_refresh_listeners": {
"type": "number"
},
"analyze": {
"description": "Settings to define analyzers, tokenizers, token filters and character filters.\nRefer to the linked documentation for step-by-step examples of updating analyzers on existing indices.",
"allOf": [
{
"$ref": "#/$defs/indices._types.SettingsAnalyze"
}
]
},
"highlight": {
"allOf": [
{
"$ref": "#/$defs/indices._types.SettingsHighlight"
}
]
},
"max_terms_count": {
"default": 65536.0,
"type": "number"
},
"max_regex_length": {
"default": 1000.0,
"type": "number"
},
"routing": {
"allOf": [
{
"$ref": "#/$defs/indices._types.IndexRouting"
}
]
},
"gc_deletes": {
"default": "60s",
"allOf": [
{
"$ref": "#/$defs/_types.Duration"
}
]
},
"default_pipeline": {
"default": "_none",
"allOf": [
{
"$ref": "#/$defs/_types.PipelineName"
}
]
},
"final_pipeline": {
"default": "_none",
"allOf": [
{
"$ref": "#/$defs/_types.PipelineName"
}
]
},
"lifecycle": {
"allOf": [
{
"$ref": "#/$defs/indices._types.IndexSettingsLifecycle"
}
]
},
"provided_name": {
"allOf": [
{
"$ref": "#/$defs/_types.Name"
}
]
},
"creation_date": {
"allOf": [
{
"$ref": "#/$defs/_spec_utils.StringifiedEpochTimeUnitMillis"
}
]
},
"creation_date_string": {
"allOf": [
{
"$ref": "#/$defs/_types.DateTime"
}
]
},
"uuid": {
"allOf": [
{
"$ref": "#/$defs/_types.Uuid"
}
]
},
"version": {
"allOf": [
{
"$ref": "#/$defs/indices._types.IndexVersioning"
}
]
},
"verified_before_close": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "string"
}
]
},
"format": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"max_slices_per_scroll": {
"type": "number"
},
"translog": {
"allOf": [
{
"$ref": "#/$defs/indices._types.Translog"
}
]
},
"query_string": {
"allOf": [
{
"$ref": "#/$defs/indices._types.SettingsQueryString"
}
]
},
"priority": {
"oneOf": [
{
"type": "number"
},
{
"type": "string"
}
]
},
"top_metrics_max_size": {
"type": "number"
},
"analysis": {
"allOf": [
{
"$ref": "#/$defs/indices._types.IndexSettingsAnalysis"
}
]
},
"settings": {
"allOf": [
{
"$ref": "#/$defs/indices._types.IndexSettings"
}
]
},
"time_series": {
"allOf": [
{
"$ref": "#/$defs/indices._types.IndexSettingsTimeSeries"
}
]
},
"queries": {
"allOf": [
{
"$ref": "#/$defs/indices._types.Queries"
}
]
},
"similarity": {
"description": "Configure custom similarity settings to customize how search results are scored.",
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/indices._types.SettingsSimilarity"
}
},
"mapping": {
"description": "Enable or disable dynamic mapping for an index.",
"allOf": [
{
"$ref": "#/$defs/indices._types.MappingLimitSettings"
}
]
},
"indexing.slowlog": {
"allOf": [
{
"$ref": "#/$defs/indices._types.IndexingSlowlogSettings"
}
]
},
"indexing_pressure": {
"description": "Configure indexing back pressure limits.",
"allOf": [
{
"$ref": "#/$defs/indices._types.IndexingPressure"
}
]
},
"store": {
"description": "The store module allows you to control how index data is stored and accessed on disk.",
"allOf": [
{
"$ref": "#/$defs/indices._types.Storage"
}
]
}
},
"$defs": {
"_global.search._types.BoundaryScanner": {
"type": "string",
"enum": [
"chars",
"sentence",
"word"
]
},
"_global.search._types.FieldCollapse": {
"type": "object",
"properties": {
"field": {
"description": "The field to collapse the result set on",
"allOf": [
{
"$ref": "#/$defs/_types.Field"
}
]
},
"inner_hits": {
"description": "The number of inner hits and their sort order",
"oneOf": [
{
"$ref": "#/$defs/_global.search._types.InnerHits"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/_global.search._types.InnerHits"
}
}
]
},
"max_concurrent_group_searches": {
"description": "The number of concurrent requests allowed to retrieve the inner_hits per group",
"type": "number"
},
"collapse": {
"allOf": [
{
"$ref": "#/$defs/_global.search._types.FieldCollapse"
}
]
}
},
"required": [
"field"
]
},
"_global.search._types.Highlight": {
"allOf": [
{
"$ref": "#/$defs/_global.search._types.HighlightBase"
},
{
"type": "object",
"properties": {
"encoder": {
"allOf": [
{
"$ref": "#/$defs/_global.search._types.HighlighterEncoder"
}
]
},
"fields": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/_global.search._types.HighlightField"
},
"minProperties": 1,
"maxProperties": 1
},
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/_global.search._types.HighlightField"
},
"minProperties": 1,
"maxProperties": 1
}
}
]
}
},
"required": [
"fields"
]
}
]
},
"_global.search._types.HighlightBase": {
"type": "object",
"properties": {
"type": {
"description": "\n\nSupported values include:\n - `plain`: The `plain` highlighter uses the standard Lucene highlighter\n - `fvh`: The fvh highlighter uses the Lucene Fast Vector highlighter.\n - `unified`: The unified highlighter uses the Lucene Unified Highlighter.\n\n",
"allOf": [
{
"$ref": "#/$defs/_global.search._types.HighlighterType"
}
]
},
"boundary_chars": {
"description": "A string that contains each boundary character.",
"default": ".,!? \\t\\n",
"type": "string"
},
"boundary_max_scan": {
"description": "How far to scan for boundary characters.",
"default": 20.0,
"type": "number"
},
"boundary_scanner": {
"description": "Specifies how to break the highlighted fragments: chars, sentence, or word.\nOnly valid for the unified and fvh highlighters.\nDefaults to `sentence` for the `unified` highlighter. Defaults to `chars` for the `fvh` highlighter.\n\nSupported values include:\n - `chars`: Use the characters specified by `boundary_chars` as highlighting boundaries.\nThe `boundary_max_scan` setting controls how far to scan for boundary characters.\nOnly valid for the `fvh` highlighter.\n - `sentence`: Break highlighted fragments at the next sentence boundary, as determined by Java’s `BreakIterator`.\nYou can specify the locale to use with `boundary_scanner_locale`.\nWhen used with the `unified` highlighter, the `sentence` scanner splits sentences bigger than `fragment_size` at the first word boundary next to fragment_size.\nYou can set `fragment_size` to `0` to never split any sentence.\n - `word`: Break highlighted fragments at the next word boundary, as determined by Java’s `BreakIterator`.\nYou can specify the locale to use with `boundary_scanner_locale`.\n\n",
"allOf": [
{
"$ref": "#/$defs/_global.search._types.BoundaryScanner"
}
]
},
"boundary_scanner_locale": {
"description": "Controls which locale is used to search for sentence and word boundaries.\nThis parameter takes a form of a language tag, for example: `\"en-US\"`, `\"fr-FR\"`, `\"ja-JP\"`.",
"default": "Locale.ROOT",
"type": "string"
},
"force_source": {
"deprecated": true,
"type": "boolean"
},
"fragmenter": {
"description": "Specifies how text should be broken up in highlight snippets: `simple` or `span`.\nOnly valid for the `plain` highlighter.",
"default": "span",
"allOf": [
{
"$ref": "#/$defs/_global.search._types.HighlighterFragmenter"
}
]
},
"fragment_size": {
"description": "The size of the highlighted fragment in characters.",
"default": 100.0,
"type": "number"
},
"highlight_filter": {
"type": "boolean"
},
"highlight_query": {
"description": "Highlight matches for a query other than the search query.\nThis is especially useful if you use a rescore query because those are not taken into account by highlighting by default.",
"allOf": [
{
"$ref": "#/$defs/_types.query_dsl.QueryContainer"
}
]
},
"max_fragment_length": {
"type": "number"
},
"max_analyzed_offset": {
"description": "If set to a non-negative value, highlighting stops at this defined maximum limit.\nThe rest of the text is not processed, thus not highlighted and no error is returned\nThe `max_analyzed_offset` query setting does not override the `index.highlight.max_analyzed_offset` setting, which prevails when it’s set to lower value than the query setting.",
"type": "number"
},
"no_match_size": {
"description": "The amount of text you want to return from the beginning of the field if there are no matching fragments to highlight.",
"default": 0.0,
"type": "number"
},
"number_of_fragments": {
"description": "The maximum number of fragments to return.\nIf the number of fragments is set to `0`, no fragments are returned.\nInstead, the entire field contents are highlighted and returned.\nThis can be handy when you need to highlight short texts such as a title or address, but fragmentation is not required.\nIf `number_of_fragments` is `0`, `fragment_size` is ignored.",
"default": 5.0,
"type": "number"
},
"options": {
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"order": {
"description": "Sorts highlighted fragments by score when set to `score`.\nBy default, fragments will be output in the order they appear in the field (order: `none`).\nSetting this option to `score` will output the most relevant fragments first.\nEach highlighter applies its own logic to compute relevancy scores.",
"default": "none",
"allOf": [
{
"$ref": "#/$defs/_global.search._types.HighlighterOrder"
}
]
},
"phrase_limit": {
"description": "Controls the number of matching phrases in a document that are considered.\nPrevents the `fvh` highlighter from analyzing too many phrases and consuming too much memory.\nWhen using `matched_fields`, `phrase_limit` phrases per matched field are considered. Raising the limit increases query time and consumes more memory.\nOnly supported by the `fvh` highlighter.",
"default": 256.0,
"type": "number"
},
"post_tags": {
"description": "Use in conjunction with `pre_tags` to define the HTML tags to use for the highlighted text.\nBy default, highlighted text is wrapped in `<em>` and `</em>` tags.",
"type": "array",
"items": {
"type": "string"
}
},
"pre_tags": {
"description": "Use in conjunction with `post_tags` to define the HTML tags to use for the highlighted text.\nBy default, highlighted text is wrapped in `<em>` and `</em>` tags.",
"type": "array",
"items": {
"type": "string"
}
},
"require_field_match": {
"description": "By default, only fields that contains a query match are highlighted.\nSet to `false` to highlight all fields.",
"default": true,
"type": "boolean"
},
"tags_schema": {
"description": "Set to `styled` to use the built-in tag schema.",
"allOf": [
{
"$ref": "#/$defs/_global.search._types.HighlighterTagsSchema"
}
]
}
}
},
"_global.search._types.HighlightField": {
"allOf": [
{
"$ref": "#/$defs/_global.search._types.HighlightBase"
},
{
"type": "object",
"properties": {
"fragment_offset": {
"type": "number"
},
"matched_fields": {
"allOf": [
{
"$ref": "#/$defs/_types.Fields"
}
]
}
}
}
]
},
"_global.search._types.HighlighterEncoder": {
"type": "string",
"enum": [
"default",
"html"
]
},
"_global.search._types.HighlighterFragmenter": {
"type": "string",
"enum": [
"simple",
"span"
]
},
"_global.search._types.HighlighterOrder": {
"type": "string",
"enum": [
"score"
]
},
"_global.search._types.HighlighterTagsSchema": {
"type": "string",
"enum": [
"styled"
]
},
"_global.search._types.HighlighterType": {
"anyOf": [
{
"type": "string",
"enum": [
"plain",
"fvh",
"unified"
]
},
{
"type": "string"
}
]
},
"_global.search._types.InnerHits": {
"type": "object",
"properties": {
"name": {
"description": "The name for the particular inner hit definition in the response.\nUseful when a search request contains multiple inner hits.",
"allOf": [
{
"$ref": "#/$defs/_types.Name"
}
]
},
"size": {
"description": "The maximum number of hits to return per `inner_hits`.",
"default": 3.0,
"type": "number"
},
"from": {
"description": "Inner hit starting document offset.",
"default": 0.0,
"type": "number"
},
"collapse": {
"allOf": [
{
"$ref": "#/$defs/_global.search._types.FieldCollapse"
}
]
},
"docvalue_fields": {
"type": "array",
"items": {
"$ref": "#/$defs/_types.query_dsl.FieldAndFormat"
}
},
"explain": {
"type": "boolean"
},
"highlight": {
"allOf": [
{
"$ref": "#/$defs/_global.search._types.Highlight"
}
]
},
"ignore_unmapped": {
"type": "boolean"
},
"script_fields": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/_types.ScriptField"
}
},
"seq_no_primary_term": {
"type": "boolean"
},
"fields": {
"type": "array",
"items": {
"$ref": "#/$defs/_types.Field"
}
},
"sort": {
"description": "How the inner hits should be sorted per `inner_hits`.\nBy default, inner hits are sorted by score.",
"allOf": [
{
"$ref": "#/$defs/_types.Sort"
}
]
},
"_source": {
"allOf": [
{
"$ref": "#/$defs/_global.search._types.SourceConfig"
}
]
},
"stored_fields": {
"allOf": [
{
"$ref": "#/$defs/_types.Fields"
}
]
},
"track_scores": {
"default": false,
"type": "boolean"
},
"version": {
"type": "boolean"
}
}
},
"_global.search._types.LearningToRank": {
"type": "object",
"properties": {
"model_id": {
"description": "The unique identifier of the trained model uploaded to Elasticsearch",
"type": "string"
},
"params": {
"description": "Named parameters to be passed to the query templates used for feature",
"type": "object",
"additionalProperties": {
"type": "object"
}
}
},
"required": [
"model_id"
]
},
"_global.search._types.PointInTimeReference": {
"type": "object",
"properties": {
"id": {
"allOf": [
{
"$ref": "#/$defs/_types.Id"
}
]
},
"keep_alive": {
"allOf": [
{
"$ref": "#/$defs/_types.Duration"
}
]
}
},
"required": [
"id"
]
},
"_global.search._types.Rescore": {
"allOf": [
{
"type": "object",
"properties": {
"window_size": {
"type": "number"
}
}
},
{
"type": "object",
"properties": {
"query": {
"allOf": [
{
"$ref": "#/$defs/_global.search._types.RescoreQuery"
}
]
},
"learning_to_rank": {
"allOf": [
{
"$ref": "#/$defs/_global.search._types.LearningToRank"
}
]
},
"script": {
"allOf": [
{
"$ref": "#/$defs/_global.search._types.ScriptRescore"
}
]
}
},
"minProperties": 1,
"maxProperties": 1
}
]
},
"_global.search._types.RescoreQuery": {
"type": "object",
"properties": {
"rescore_query": {
"description": "The query to use for rescoring.\nThis query is only run on the Top-K results returned by the `query` and `post_filter` phases.",
"allOf": [
{
"$ref": "#/$defs/_types.query_dsl.QueryContainer"
}
]
},
"query_weight": {
"description": "Relative importance of the original query versus the rescore query.",
"default": 1.0,
"type": "number"
},
"rescore_query_weight": {
"description": "Relative importance of the rescore query versus the original query.",
"default": 1.0,
"type": "number"
},
"score_mode": {
"description": "Determines how scores are combined.\n\nSupported values include:\n - `avg`: Average the original score and the rescore query score.\n - `max`: Take the max of original score and the rescore query score.\n - `min`: Take the min of the original score and the rescore query score.\n - `multiply`: Multiply the original score by the rescore query score.\nUseful for `function` query rescores.\n - `total`: Add the original score and the rescore query score.\n\n",
"default": "total",
"allOf": [
{
"$ref": "#/$defs/_global.search._types.ScoreMode"
}
]
}
},
"required": [
"rescore_query"
]
},
"_global.search._types.ScoreMode": {
"type": "string",
"enum": [
"avg",
"max",
"min",
"multiply",
"total"
]
},
"_global.search._types.ScriptRescore": {
"type": "object",
"properties": {
"script": {
"allOf": [
{
"$ref": "#/$defs/_types.Script"
}
]
}
},
"required": [
"script"
]
},
"_global.search._types.SearchRequestBody": {
"type": "object",
"properties": {
"aggregations": {
"description": "Defines the aggregations that are run as part of the search request.",
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/_types.aggregations.AggregationContainer"
}
},
"collapse": {
"description": "Collapses search results the values of the specified field.",
"allOf": [
{
"$ref": "#/$defs/_global.search._types.FieldCollapse"
}
]
},
"explain": {
"description": "If `true`, the request returns detailed information about score computation as part of a hit.",
"default": false,
"type": "boolean"
},
"ext": {
"description": "Configuration of search extensions defined by Elasticsearch plugins.",
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"from": {
"description": "The starting document offset, which must be non-negative.\nBy default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.\nTo page through more hits, use the `search_after` parameter.",
"default": 0.0,
"type": "number"
},
"highlight": {
"description": "Specifies the highlighter to use for retrieving highlighted snippets from one or more fields in your search results.",
"allOf": [
{
"$ref": "#/$defs/_global.search._types.Highlight"
}
]
},
"track_total_hits": {
"description": "Number of hits matching the query to count accurately.\nIf `true`, the exact number of hits is returned at the cost of some performance.\nIf `false`, the response does not include the total number of hits matching the query.",
"default": "10000",
"allOf": [
{
"$ref": "#/$defs/_global.search._types.TrackHits"
}
]
},
"indices_boost": {
"description": "Boost the `_score` of documents from specified indices.\nThe boost value is the factor by which scores are multiplied.\nA boost value greater than `1.0` increases the score.\nA boost value between `0` and `1.0` decreases the score.",
"type": "array",
"items": {
"type": "object",
"additionalProperties": {
"type": "number"
},
"minProperties": 1,
"maxProperties": 1
}
},
"docvalue_fields": {
"description": "An array of wildcard (`*`) field patterns.\nThe request returns doc values for field names matching these patterns in the `hits.fields` property of the response.",
"type": "array",
"items": {
"$ref": "#/$defs/_types.query_dsl.FieldAndFormat"
}
},
"knn": {
"description": "The approximate kNN search to run.",
"x-state": "Generally available; Added in 8.4.0",
"oneOf": [
{
"$ref": "#/$defs/_types.KnnSearch"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/_types.KnnSearch"
}
}
]
},
"rank": {
"description": "The Reciprocal Rank Fusion (RRF) to use.",
"x-state": "Generally available; Added in 8.8.0",
"allOf": [
{
"$ref": "#/$defs/_types.RankContainer"
}
]
},
"min_score": {
"description": "The minimum `_score` for matching documents.\nDocuments with a lower `_score` are not included in search results or results collected by aggregations.",
"type": "number"
},
"post_filter": {
"description": "Use the `post_filter` parameter to filter search results.\nThe search hits are filtered after the aggregations are calculated.\nA post filter has no impact on the aggregation results.",
"allOf": [
{
"$ref": "#/$defs/_types.query_dsl.QueryContainer"
}
]
},
"profile": {
"description": "Set to `true` to return detailed timing information about the execution of individual components in a search request.\nNOTE: This is a debugging tool and adds significant overhead to search execution.",
"default": false,
"type": "boolean"
},
"query": {
"description": "The search definition using the Query DSL.",
"allOf": [
{
"$ref": "#/$defs/_types.query_dsl.QueryContainer"
}
]
},
"rescore": {
"description": "Can be used to improve precision by reordering just the top (for example 100 - 500) documents returned by the `query` and `post_filter` phases.",
"oneOf": [
{
"$ref": "#/$defs/_global.search._types.Rescore"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/_global.search._types.Rescore"
}
}
]
},
"retriever": {
"description": "A retriever is a specification to describe top documents returned from a search.\nA retriever replaces other elements of the search API that also return top documents such as `query` and `knn`.",
"x-state": "Generally available; Added in 8.14.0",
"allOf": [
{
"$ref": "#/$defs/_types.RetrieverContainer"
}
]
},
"script_fields": {
"description": "Retrieve a script evaluation (based on different fields) for each hit.",
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/_types.ScriptField"
}
},
"search_after": {
"description": "Used to retrieve the next page of hits using a set of sort values from the previous page.",
"allOf": [
{
"$ref": "#/$defs/_types.SortResults"
}
]
},
"size": {
"description": "The number of hits to return, which must not be negative.\nBy default, you cannot page through more than 10,000 hits using the `from` and `size` parameters.\nTo page through more hits, use the `search_after` property.",
"default": 10.0,
"type": "number"
},
"slice": {
"description": "Split a scrolled search into multiple slices that can be consumed independently.",
"allOf": [
{
"$ref": "#/$defs/_types.SlicedScroll"
}
]
},
"sort": {
"description": "A comma-separated list of <field>:<direction> pairs.",
"allOf": [
{
"$ref": "#/$defs/_types.Sort"
}
]
},
"_source": {
"description": "The source fields that are returned for matching documents.\nThese fields are returned in the `hits._source` property of the search response.\nIf the `stored_fields` property is specified, the `_source` property defaults to `false`.\nOtherwise, it defaults to `true`.",
"allOf": [
{
"$ref": "#/$defs/_global.search._types.SourceConfig"
}
]
},
"fields": {
"description": "An array of
# --- truncated at 32 KB (571 KB total) ---
# Full source: https://artifacts.apis.io/elastic/json-schema/elastic-indices-types-index-settings-schema.json
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/elastic-indices-types-index-settings"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.