{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://gxplex.com/api/v1/schema/search.json",
  "title": "Search index entry document",
  "description": "The document served at /api/v1/search.json. Items are carried under `entries`.",
  "type": "object",
  "properties": {
    "entries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/item"
      },
      "description": "Every search index entry this document carries."
    }
  },
  "required": [
    "entries"
  ],
  "additionalProperties": true,
  "$defs": {
    "item": {
      "type": "object",
      "title": "Search index entry",
      "description": "The on-site search accelerator. Every entry is reachable by navigation without it. Keys are one character because this file is downloaded by every reader who types in the box.",
      "properties": {
        "h": {
          "type": "string",
          "description": "Heading."
        },
        "b": {
          "type": "string",
          "description": "Searched body: summary, authority, topics, jurisdiction and aliases."
        },
        "u": {
          "type": "string",
          "description": "The page the entry points at."
        },
        "k": {
          "type": "string",
          "description": "The kind of entry."
        },
        "i": {
          "type": "string",
          "description": "The row id, where the entry is a tracked document."
        }
      },
      "required": [
        "h",
        "u",
        "k"
      ],
      "additionalProperties": true
    }
  }
}
