{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/serpmantics-com/json-schema/serpmantics-com-guide-corpus-top-window-schema.json",
  "title": "GuideCorpusTopWindow",
  "description": "Present ONLY on a guide whose analysis window is not the plain top 10 (shared by /guide and /guides). Without `includesTop10`, none of the first 10 results of the search engine could be kept, so the guide relies on the next ranked pages instead of failing. With `includesTop10`, only 1 or 2 of the first 10 results could be kept, and the guide relies on them plus the next ranked pages. Absent on every other guide, which is the normal case: treat a missing field as \"built on the top 10\". Positions are the real ranks, never renumbered. When `organicRank` is `true`, the window holds the pages read among the first 10 WEB pages of the results (engine blocks such as the local pack, the AI answer or the questions hold some of the ranks): treat the guide as a regular one, whichever shape the object has.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/serpmantics-com-openapi.yml#/components/schemas/GuideCorpusTopWindow",
  "type": "object",
  "properties": {
    "fallback": {
      "type": "boolean",
      "description": "Always `true` when the object is present."
    },
    "maxPosition": {
      "type": "integer",
      "description": "Rank of the last page the guide relies on (30 at most)."
    },
    "documents": {
      "type": "integer",
      "description": "Number of pages the guide relies on."
    },
    "includesTop10": {
      "type": "boolean",
      "description": "Present (and `true`) ONLY on an extended window: only 1 or 2 of the first 10 results could be kept, so the window starts at position 1 and also includes the next ranked pages up to `maxPosition`. Absent when no page of the top 10 is in the window."
    },
    "top10Documents": {
      "type": "integer",
      "description": "Present ONLY with `includesTop10`. Number of pages ranked 10 or better that the guide relies on (1 or 2)."
    },
    "organicRank": {
      "type": "boolean",
      "description": "Present (and `true`) ONLY when the window holds the pages read among the first 10 WEB pages of the results, engine blocks excluded (local pack, AI answer, questions, images): the guide is built like a regular one, on ranks that go beyond 10 because blocks hold some of them. Comes with either shape above. Absent otherwise."
    }
  }
}