Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...

    Function inferDocumentCoverageState

    • Infer the machine-readable MCP coverage state for a document payload.

      The requestedDate should be the current analysis/run date (i.e. "today"), NOT the document's own publication date. Only when the document was published on the same day as the analysis run and still lacks full text do we infer not_indexed (indexing lag). For older documents without full text, the correct state is metadata_only.

      Parameters

      • record: Record<string, unknown>
      • options: { requestedDate?: string; fullTextRequested?: boolean } = {}

      Returns "full_text" | "metadata_only" | "not_indexed" | "search_empty" | "fetch_error"