GFacet: { field_name: string; name: string } & (
    | { type: "terms" }
    | { missing?: number; type: "sum" | "avg" }
    | {
        date_interval: DateInterval;
        histogram_range?: HistogramRange;
        type: "date_histogram";
    }
    | {
        histogram_range: HistogramRange;
        interval: number;
        size: string;
        type: "numeric_histogram";
    }
)