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

    Interface CountDatasetsParams

    What the dataset tools filter by.

    interface CountDatasetsParams {
        dateField?: DateField;
        facets?: readonly (
            | "format"
            | "type"
            | "organization"
            | "group"
            | "tag"
            | "licence"
            | "documentType"
        )[];
        filters?: readonly string[];
        format?: string;
        from?: string;
        group?: string;
        limit?: number;
        organization?: string;
        portal?: string;
        query?: string;
        tag?: string;
        to?: string;
        type?: "dataset"
        | "document"
        | "app";
        withFiles?: boolean;
        yearFrom?: number;
        yearTo?: number;
    }

    Hierarchy (View Summary)

    Index
    dateField?: DateField

    The date field of from and to: created (when the record entered the portal, default) or modified.

    facets?: readonly (
        | "format"
        | "type"
        | "organization"
        | "group"
        | "tag"
        | "licence"
        | "documentType"
    )[]
    filters?: readonly string[]

    Raw Solr filter queries, ANDed (each its own filter).

    format?: string

    Datasets with a file in this format, in any of its spellings (CSV, GEOJSON, SHP, …).

    from?: string

    From this day on (YYYY-MM-DD).

    group?: string

    A group (theme, category), by slug or name.

    limit?: number

    Values per facet.

    organization?: string

    An organization (publisher), by slug or name.

    portal?: string

    A portal of the built-in list by its id; else the client's own.

    query?: string

    Solr query: words, "phrases", AND/OR/NOT, field:value (title:Radverkehr).

    tag?: string

    A tag, exactly as the portal spells it.

    to?: string

    Up to and including this day (YYYY-MM-DD).

    type?: "dataset" | "document" | "app"

    dataset, document or app (Hamburg has all three).

    withFiles?: boolean

    Only datasets with at least one file (num_resources ≥ 1): metadata-only records left out.

    yearFrom?: number

    Count per year from this year …

    yearTo?: number

    … to this one (on dateField: created, or modified).