Elastic · Schema

SearchResponse

SearchAnalyticsObservabilitySecurityVisualizationCloud

Properties

Name Type Description
took integer
timed_out boolean
hits object
View JSON Schema on GitHub

JSON Schema

elastic-searchresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SearchResponse",
  "title": "SearchResponse",
  "type": "object",
  "properties": {
    "took": {
      "type": "integer"
    },
    "timed_out": {
      "type": "boolean"
    },
    "hits": {
      "type": "object",
      "properties": {
        "total": {
          "type": "object",
          "properties": {
            "value": {
              "type": "integer"
            },
            "relation": {
              "type": "string"
            }
          }
        },
        "max_score": {
          "type": "number",
          "nullable": true
        },
        "hits": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/Document"
          }
        }
      }
    }
  }
}