Elastic · Schema

_global.search.ResponseBody

SearchAnalyticsObservabilitySecurityVisualizationCloudMonitoring

Properties

Name Type Description
took number The number of milliseconds it took Elasticsearch to run the request. This value is calculated by measuring the time elapsed between receipt of a request on the coordinating node and the time at which
timed_out boolean If `true`, the request timed out before completion; returned results may be partial or empty.
_shards object A count of shards used for the request.
hits object The returned documents and metadata.
aggregations object
_clusters object
fields object
max_score number
num_reduce_phases number
profile object
pit_id object
_scroll_id object The identifier for the search and its search context. You can use this scroll ID with the scroll API to retrieve the next batch of search results for the request. This property is returned only if the
suggest object
terminated_early boolean
View JSON Schema on GitHub

JSON Schema

elastic-global-search-response-body-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elastic/json-schema/elastic-global-search-response-body-schema.json",
  "title": "_global.search.ResponseBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elastic-search-api-openapi.yml#/components/schemas/_global.search.ResponseBody",
  "type": "object",
  "properties": {
    "took": {
      "description": "The number of milliseconds it took Elasticsearch to run the request.\nThis value is calculated by measuring the time elapsed between receipt of a request on the coordinating node and the time at which the coordinating node is ready to send the response.\nIt includes:\n\n* Communication time between the coordinating node and data nodes\n* Time the request spends in the search thread pool, queued for execution\n* Actual run time\n\nIt does not include:\n\n* Time needed to send the request to Elasticsearch\n* Time needed to serialize the JSON response\n* Time needed to send the response to a client",
      "type": "number"
    },
    "timed_out": {
      "description": "If `true`, the request timed out before completion; returned results may be partial or empty.",
      "type": "boolean"
    },
    "_shards": {
      "description": "A count of shards used for the request.",
      "allOf": [
        {
          "$ref": "#/$defs/_types.ShardStatistics"
        }
      ]
    },
    "hits": {
      "description": "The returned documents and metadata.",
      "allOf": [
        {
          "$ref": "#/$defs/_global.search._types.HitsMetadata"
        }
      ]
    },
    "aggregations": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/_types.aggregations.Aggregate"
      }
    },
    "_clusters": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.ClusterStatistics"
        }
      ]
    },
    "fields": {
      "type": "object",
      "additionalProperties": {
        "type": "object"
      }
    },
    "max_score": {
      "type": "number"
    },
    "num_reduce_phases": {
      "type": "number"
    },
    "profile": {
      "allOf": [
        {
          "$ref": "#/$defs/_global.search._types.Profile"
        }
      ]
    },
    "pit_id": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.Id"
        }
      ]
    },
    "_scroll_id": {
      "description": "The identifier for the search and its search context.\nYou can use this scroll ID with the scroll API to retrieve the next batch of search results for the request.\nThis property is returned only if the `scroll` query parameter is specified in the request.",
      "allOf": [
        {
          "$ref": "#/$defs/_types.ScrollId"
        }
      ]
    },
    "suggest": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/_global.search._types.Suggest"
        }
      }
    },
    "terminated_early": {
      "type": "boolean"
    }
  },
  "required": [
    "took",
    "timed_out",
    "_shards",
    "hits"
  ],
  "$defs": {
    "_global.explain.Explanation": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.explain.ExplanationDetail"
          }
        },
        "value": {
          "type": "number"
        }
      },
      "required": [
        "description",
        "details",
        "value"
      ]
    },
    "_global.explain.ExplanationDetail": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
        "details": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.explain.ExplanationDetail"
          }
        },
        "value": {
          "type": "number"
        }
      },
      "required": [
        "description",
        "value"
      ]
    },
    "_global.search._types.AggregationBreakdown": {
      "type": "object",
      "properties": {
        "build_aggregation": {
          "type": "number"
        },
        "build_aggregation_count": {
          "type": "number"
        },
        "build_leaf_collector": {
          "type": "number"
        },
        "build_leaf_collector_count": {
          "type": "number"
        },
        "collect": {
          "type": "number"
        },
        "collect_count": {
          "type": "number"
        },
        "initialize": {
          "type": "number"
        },
        "initialize_count": {
          "type": "number"
        },
        "post_collection": {
          "type": "number"
        },
        "post_collection_count": {
          "type": "number"
        },
        "reduce": {
          "type": "number"
        },
        "reduce_count": {
          "type": "number"
        }
      },
      "required": [
        "build_aggregation",
        "build_aggregation_count",
        "build_leaf_collector",
        "build_leaf_collector_count",
        "collect",
        "collect_count",
        "initialize",
        "initialize_count",
        "reduce",
        "reduce_count"
      ]
    },
    "_global.search._types.AggregationProfile": {
      "type": "object",
      "properties": {
        "breakdown": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.AggregationBreakdown"
            }
          ]
        },
        "description": {
          "type": "string"
        },
        "time_in_nanos": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitNanos"
            }
          ]
        },
        "type": {
          "type": "string"
        },
        "debug": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.AggregationProfileDebug"
            }
          ]
        },
        "children": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.search._types.AggregationProfile"
          }
        }
      },
      "required": [
        "breakdown",
        "description",
        "time_in_nanos",
        "type"
      ]
    },
    "_global.search._types.AggregationProfileDebug": {
      "type": "object",
      "properties": {
        "segments_with_multi_valued_ords": {
          "type": "number"
        },
        "collection_strategy": {
          "type": "string"
        },
        "segments_with_single_valued_ords": {
          "type": "number"
        },
        "total_buckets": {
          "type": "number"
        },
        "built_buckets": {
          "type": "number"
        },
        "result_strategy": {
          "type": "string"
        },
        "has_filter": {
          "type": "boolean"
        },
        "delegate": {
          "type": "string"
        },
        "delegate_debug": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.AggregationProfileDebug"
            }
          ]
        },
        "chars_fetched": {
          "type": "number"
        },
        "extract_count": {
          "type": "number"
        },
        "extract_ns": {
          "type": "number"
        },
        "values_fetched": {
          "type": "number"
        },
        "collect_analyzed_ns": {
          "type": "number"
        },
        "collect_analyzed_count": {
          "type": "number"
        },
        "surviving_buckets": {
          "type": "number"
        },
        "ordinals_collectors_used": {
          "type": "number"
        },
        "ordinals_collectors_overhead_too_high": {
          "type": "number"
        },
        "string_hashing_collectors_used": {
          "type": "number"
        },
        "numeric_collectors_used": {
          "type": "number"
        },
        "empty_collectors_used": {
          "type": "number"
        },
        "deferred_aggregators": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "segments_with_doc_count_field": {
          "type": "number"
        },
        "segments_with_deleted_docs": {
          "type": "number"
        },
        "filters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.search._types.AggregationProfileDelegateDebugFilter"
          }
        },
        "segments_counted": {
          "type": "number"
        },
        "segments_collected": {
          "type": "number"
        },
        "map_reducer": {
          "type": "string"
        },
        "brute_force_used": {
          "type": "number"
        },
        "dynamic_pruning_attempted": {
          "type": "number"
        },
        "dynamic_pruning_used": {
          "type": "number"
        },
        "skipped_due_to_no_data": {
          "type": "number"
        }
      }
    },
    "_global.search._types.AggregationProfileDelegateDebugFilter": {
      "type": "object",
      "properties": {
        "results_from_metadata": {
          "type": "number"
        },
        "query": {
          "type": "string"
        },
        "specialized_for": {
          "type": "string"
        },
        "segments_counted_in_constant_time": {
          "type": "number"
        }
      }
    },
    "_global.search._types.Collector": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        },
        "time_in_nanos": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitNanos"
            }
          ]
        },
        "children": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.search._types.Collector"
          }
        }
      },
      "required": [
        "name",
        "reason",
        "time_in_nanos"
      ]
    },
    "_global.search._types.CompletionSuggest": {
      "allOf": [
        {
          "$ref": "#/$defs/_global.search._types.SuggestBase"
        },
        {
          "type": "object",
          "properties": {
            "options": {
              "oneOf": [
                {
                  "$ref": "#/$defs/_global.search._types.CompletionSuggestOption"
                },
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/_global.search._types.CompletionSuggestOption"
                  }
                }
              ]
            }
          },
          "required": [
            "options"
          ]
        }
      ]
    },
    "_global.search._types.CompletionSuggestOption": {
      "type": "object",
      "properties": {
        "collate_match": {
          "type": "boolean"
        },
        "contexts": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/_global.search._types.Context"
            }
          }
        },
        "fields": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "_id": {
          "type": "string"
        },
        "_index": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.IndexName"
            }
          ]
        },
        "_routing": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Routing"
            }
          ]
        },
        "_score": {
          "type": "number"
        },
        "_source": {
          "type": "object"
        },
        "text": {
          "type": "string"
        },
        "score": {
          "type": "number"
        }
      },
      "required": [
        "text"
      ]
    },
    "_global.search._types.Context": {
      "description": "Text or location that we want similar documents for or a lookup to a document's field for the text.",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "#/$defs/_types.GeoLocation"
        }
      ]
    },
    "_global.search._types.DfsKnnProfile": {
      "type": "object",
      "properties": {
        "vector_operations_count": {
          "type": "number"
        },
        "query": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.search._types.KnnQueryProfileResult"
          }
        },
        "rewrite_time": {
          "type": "number"
        },
        "collector": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.search._types.KnnCollectorResult"
          }
        }
      },
      "required": [
        "query",
        "rewrite_time",
        "collector"
      ]
    },
    "_global.search._types.DfsProfile": {
      "type": "object",
      "properties": {
        "statistics": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.DfsStatisticsProfile"
            }
          ]
        },
        "knn": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.search._types.DfsKnnProfile"
          }
        }
      }
    },
    "_global.search._types.DfsStatisticsBreakdown": {
      "type": "object",
      "properties": {
        "collection_statistics": {
          "type": "number"
        },
        "collection_statistics_count": {
          "type": "number"
        },
        "create_weight": {
          "type": "number"
        },
        "create_weight_count": {
          "type": "number"
        },
        "rewrite": {
          "type": "number"
        },
        "rewrite_count": {
          "type": "number"
        },
        "term_statistics": {
          "type": "number"
        },
        "term_statistics_count": {
          "type": "number"
        }
      },
      "required": [
        "collection_statistics",
        "collection_statistics_count",
        "create_weight",
        "create_weight_count",
        "rewrite",
        "rewrite_count",
        "term_statistics",
        "term_statistics_count"
      ]
    },
    "_global.search._types.DfsStatisticsProfile": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "time_in_nanos": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitNanos"
            }
          ]
        },
        "breakdown": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.DfsStatisticsBreakdown"
            }
          ]
        },
        "debug": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "children": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.search._types.DfsStatisticsProfile"
          }
        }
      },
      "required": [
        "type",
        "description",
        "time_in_nanos",
        "breakdown"
      ]
    },
    "_global.search._types.FetchProfile": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "time_in_nanos": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitNanos"
            }
          ]
        },
        "breakdown": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.FetchProfileBreakdown"
            }
          ]
        },
        "debug": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.FetchProfileDebug"
            }
          ]
        },
        "children": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.search._types.FetchProfile"
          }
        }
      },
      "required": [
        "type",
        "description",
        "time_in_nanos",
        "breakdown"
      ]
    },
    "_global.search._types.FetchProfileBreakdown": {
      "type": "object",
      "properties": {
        "load_source": {
          "type": "number"
        },
        "load_source_count": {
          "type": "number"
        },
        "load_stored_fields": {
          "type": "number"
        },
        "load_stored_fields_count": {
          "type": "number"
        },
        "next_reader": {
          "type": "number"
        },
        "next_reader_count": {
          "type": "number"
        },
        "process_count": {
          "type": "number"
        },
        "process": {
          "type": "number"
        }
      }
    },
    "_global.search._types.FetchProfileDebug": {
      "type": "object",
      "properties": {
        "stored_fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "fast_path": {
          "type": "number"
        }
      }
    },
    "_global.search._types.Hit": {
      "type": "object",
      "properties": {
        "_index": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.IndexName"
            }
          ]
        },
        "_id": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Id"
            }
          ]
        },
        "_score": {
          "oneOf": [
            {
              "type": "number"
            },
            {
              "type": [
                "string",
                "null"
              ]
            }
          ]
        },
        "_explanation": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.explain.Explanation"
            }
          ]
        },
        "fields": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "highlight": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "inner_hits": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/_global.search._types.InnerHitsResult"
          }
        },
        "matched_queries": {
          "oneOf": [
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            {
              "type": "object",
              "additionalProperties": {
                "type": "number"
              }
            }
          ]
        },
        "_nested": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.NestedIdentity"
            }
          ]
        },
        "_ignored": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "ignored_field_values": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        },
        "_shard": {
          "type": "string"
        },
        "_node": {
          "type": "string"
        },
        "_routing": {
          "type": "string"
        },
        "_source": {
          "type": "object"
        },
        "_rank": {
          "type": "number"
        },
        "_seq_no": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.SequenceNumber"
            }
          ]
        },
        "_primary_term": {
          "type": "number"
        },
        "_version": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.VersionNumber"
            }
          ]
        },
        "sort": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.SortResults"
            }
          ]
        }
      },
      "required": [
        "_index"
      ]
    },
    "_global.search._types.HitsMetadata": {
      "type": "object",
      "properties": {
        "total": {
          "description": "Total hit count information, present only if `track_total_hits` wasn't `false` in the search request.",
          "oneOf": [
            {
              "$ref": "#/$defs/_global.search._types.TotalHits"
            },
            {
              "type": "number"
            }
          ]
        },
        "hits": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.search._types.Hit"
          }
        },
        "max_score": {
          "oneOf": [
            {
              "type": "number"
            },
            {
              "type": [
                "string",
                "null"
              ]
            }
          ]
        }
      },
      "required": [
        "hits"
      ]
    },
    "_global.search._types.InnerHitsResult": {
      "type": "object",
      "properties": {
        "hits": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.HitsMetadata"
            }
          ]
        }
      },
      "required": [
        "hits"
      ]
    },
    "_global.search._types.KnnCollectorResult": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        },
        "time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "time_in_nanos": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitNanos"
            }
          ]
        },
        "children": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.search._types.KnnCollectorResult"
          }
        }
      },
      "required": [
        "name",
        "reason",
        "time_in_nanos"
      ]
    },
    "_global.search._types.KnnQueryProfileBreakdown": {
      "type": "object",
      "properties": {
        "advance": {
          "type": "number"
        },
        "advance_count": {
          "type": "number"
        },
        "build_scorer": {
          "type": "number"
        },
        "build_scorer_count": {
          "type": "number"
        },
        "compute_max_score": {
          "type": "number"
        },
        "compute_max_score_count": {
          "type": "number"
        },
        "count_weight": {
          "type": "number"
        },
        "count_weight_count": {
          "type": "number"
        },
        "create_weight": {
          "type": "number"
        },
        "create_weight_count": {
          "type": "number"
        },
        "match": {
          "type": "number"
        },
        "match_count": {
          "type": "number"
        },
        "next_doc": {
          "type": "number"
        },
        "next_doc_count": {
          "type": "number"
        },
        "score": {
          "type": "number"
        },
        "score_count": {
          "type": "number"
        },
        "set_min_competitive_score": {
          "type": "number"
        },
        "set_min_competitive_score_count": {
          "type": "number"
        },
        "shallow_advance": {
          "type": "number"
        },
        "shallow_advance_count": {
          "type": "number"
        }
      },
      "required": [
        "advance",
        "advance_count",
        "build_scorer",
        "build_scorer_count",
        "compute_max_score",
        "compute_max_score_count",
        "count_weight",
        "count_weight_count",
        "create_weight",
        "create_weight_count",
        "match",
        "match_count",
        "next_doc",
        "next_doc_count",
        "score",
        "score_count",
        "set_min_competitive_score",
        "set_min_competitive_score_count",
        "shallow_advance",
        "shallow_advance_count"
      ]
    },
    "_global.search._types.KnnQueryProfileResult": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "time": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Duration"
            }
          ]
        },
        "time_in_nanos": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitNanos"
            }
          ]
        },
        "breakdown": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.KnnQueryProfileBreakdown"
            }
          ]
        },
        "debug": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "children": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.search._types.KnnQueryProfileResult"
          }
        }
      },
      "required": [
        "type",
        "description",
        "time_in_nanos",
        "breakdown"
      ]
    },
    "_global.search._types.NestedIdentity": {
      "type": "object",
      "properties": {
        "field": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.Field"
            }
          ]
        },
        "offset": {
          "type": "number"
        },
        "_nested": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.NestedIdentity"
            }
          ]
        }
      },
      "required": [
        "field",
        "offset"
      ]
    },
    "_global.search._types.PhraseSuggest": {
      "allOf": [
        {
          "$ref": "#/$defs/_global.search._types.SuggestBase"
        },
        {
          "type": "object",
          "properties": {
            "options": {
              "oneOf": [
                {
                  "$ref": "#/$defs/_global.search._types.PhraseSuggestOption"
                },
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/$defs/_global.search._types.PhraseSuggestOption"
                  }
                }
              ]
            }
          },
          "required": [
            "options"
          ]
        }
      ]
    },
    "_global.search._types.PhraseSuggestOption": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "score": {
          "type": "number"
        },
        "highlighted": {
          "type": "string"
        },
        "collate_match": {
          "type": "boolean"
        }
      },
      "required": [
        "text",
        "score"
      ]
    },
    "_global.search._types.Profile": {
      "type": "object",
      "properties": {
        "shards": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.search._types.ShardProfile"
          }
        }
      },
      "required": [
        "shards"
      ]
    },
    "_global.search._types.QueryBreakdown": {
      "type": "object",
      "properties": {
        "advance": {
          "type": "number"
        },
        "advance_count": {
          "type": "number"
        },
        "build_scorer": {
          "type": "number"
        },
        "build_scorer_count": {
          "type": "number"
        },
        "create_weight": {
          "type": "number"
        },
        "create_weight_count": {
          "type": "number"
        },
        "match": {
          "type": "number"
        },
        "match_count": {
          "type": "number"
        },
        "shallow_advance": {
          "type": "number"
        },
        "shallow_advance_count": {
          "type": "number"
        },
        "next_doc": {
          "type": "number"
        },
        "next_doc_count": {
          "type": "number"
        },
        "score": {
          "type": "number"
        },
        "score_count": {
          "type": "number"
        },
        "compute_max_score": {
          "type": "number"
        },
        "compute_max_score_count": {
          "type": "number"
        },
        "count_weight": {
          "type": "number"
        },
        "count_weight_count": {
          "type": "number"
        },
        "set_min_competitive_score": {
          "type": "number"
        },
        "set_min_competitive_score_count": {
          "type": "number"
        }
      },
      "required": [
        "advance",
        "advance_count",
        "build_scorer",
        "build_scorer_count",
        "create_weight",
        "create_weight_count",
        "match",
        "match_count",
        "shallow_advance",
        "shallow_advance_count",
        "next_doc",
        "next_doc_count",
        "score",
        "score_count",
        "compute_max_score",
        "compute_max_score_count",
        "count_weight",
        "count_weight_count",
        "set_min_competitive_score",
        "set_min_competitive_score_count"
      ]
    },
    "_global.search._types.QueryProfile": {
      "type": "object",
      "properties": {
        "breakdown": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.QueryBreakdown"
            }
          ]
        },
        "description": {
          "type": "string"
        },
        "time_in_nanos": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.DurationValueUnitNanos"
            }
          ]
        },
        "type": {
          "type": "string"
        },
        "children": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.search._types.QueryProfile"
          }
        }
      },
      "required": [
        "breakdown",
        "description",
        "time_in_nanos",
        "type"
      ]
    },
    "_global.search._types.SearchProfile": {
      "type": "object",
      "properties": {
        "collector": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.search._types.Collector"
          }
        },
        "query": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.search._types.QueryProfile"
          }
        },
        "rewrite_time": {
          "type": "number"
        }
      },
      "required": [
        "collector",
        "query",
        "rewrite_time"
      ]
    },
    "_global.search._types.ShardProfile": {
      "type": "object",
      "properties": {
        "aggregations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.search._types.AggregationProfile"
          }
        },
        "cluster": {
          "type": "string"
        },
        "dfs": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.DfsProfile"
            }
          ]
        },
        "fetch": {
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.FetchProfile"
            }
          ]
        },
        "id": {
          "type": "string"
        },
        "index": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.IndexName"
            }
          ]
        },
        "node_id": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.NodeId"
            }
          ]
        },
        "searches": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_global.search._types.SearchProfile"
          }
        },
        "shard_id": {
          "type": "number"
        }
      },
      "required": [
        "aggregations",
        "cluster",
        "id",
        "index",
        "node_id",
        "searches",
        "shard_id"
      ]
    },
    "_global.search._types.Suggest": {
      "oneOf": [
        {
          "$ref": "#/$defs/_global.search._types.CompletionSuggest"
        },
        {
          "$ref": "#/$defs/_global.search._types.PhraseSuggest"
        },
        {
          "$ref": "#/$defs/_global.search._types.TermSuggest"
        }
      ]
    },
    "_global.search._types.SuggestBase": {
      "type": "object",
      "properties": {
        "length": {
          "type": "number"
        },
        "offset": {
          "type": "number"
        },
        "text": {
          "type": "string"
        }
      },
      "required": [
        "length",
        "offset",
        "text"
      ]
    },
    "_global.search._types.TermSuggest": {
      "allOf": [
        {


# --- truncated at 32 KB (137 KB total) ---
# Full source: https://artifacts.apis.io/elastic/json-schema/elastic-global-search-response-body-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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/elastic-global-search-response-body"
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.