Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

FacetOptions

import type { FacetOptions } from "https://googleapis.deno.dev/v1/cloudsearch:v1.ts";

Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination.

interface FacetOptions {
integerFacetingOptions?: IntegerFacetingOptions;
numFacetBuckets?: number;
objectType?: string;
operatorName?: string;
sourceName?: string;
}

§Properties

§
integerFacetingOptions?: IntegerFacetingOptions
[src]

If set, describes integer faceting options for the given integer property. The corresponding integer property in the schema should be marked isFacetable. The number of buckets returned would be minimum of this and num_facet_buckets.

§
numFacetBuckets?: number
[src]

Maximum number of facet buckets that should be returned for this facet. Defaults to 10. Maximum value is 100.

§
objectType?: string
[src]

If object_type is set, only those objects of that type will be used to compute facets. If empty, then all objects will be used to compute facets.

§
operatorName?: string
[src]

The name of the operator chosen for faceting. @see cloudsearch.SchemaPropertyOptions

§
sourceName?: string
[src]

Source name to facet on. Format: datasources/{source_id} If empty, all data sources will be used.