@maschinenlesbar.org/openka-cli
    Preparing search index...

    Interface CatalogEntry

    The denormalised row the search and list commands read, so neither has to load every full record from disk to filter or display results.

    interface CatalogEntry {
        abstained: number;
        abstained_fields?: Record<string, number>;
        answered?: string;
        extractor_version?: string;
        id: string;
        legislative_period: number;
        ministry?: string;
        parliament: string;
        parties: string[];
        party_labels?: string[];
        questions?: number;
        reference: string;
        review_status: string;
        submitted?: string;
        terms: number;
        tier: string;
        title: string;
        year?: number;
    }
    Index
    abstained: number
    abstained_fields?: Record<string, number>

    The abstained fields by kind — qa[3].answer counts as qa[].answer (abstainedFieldKind) — with how often each occurs in the record. Absent on a row without abstentions, and on a row catalogued before this was indexed (ka reindex adds it). It lets ka review --group-by field and ka stats group without reading the records.

    answered?: string
    extractor_version?: string

    The extractor version that produced the record.

    id: string
    legislative_period: number
    ministry?: string

    The answering ministry or body, when the record names one.

    parliament: string
    parties: string[]

    Distinct party labels of the askers, sorted, lowercased for matching.

    party_labels?: string[]

    The askers' parties as the record writes them, one per party (parties is lowercased for matching), in order of appearance — what ka stats --by party prints. This and the three below are absent on a row catalogued before they were indexed (2026-10-08); ka reindex adds them.

    questions?: number

    How many Q/A pairs the record holds.

    reference: string
    review_status: string
    submitted?: string
    terms: number

    Number of tokens indexed for this document — kept so removals stay exact.

    tier: string
    title: string
    year?: number

    Calendar year used by --year: the year the Anfrage was asked; absent when that is unknown.