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

FacetResult

import type { FacetResult } from "https://aws-api.deno.dev/v0.3/services/kendra.ts?docs=full";

The facet values for the documents in the response.

interface FacetResult {
DocumentAttributeKey?: string | null;
DocumentAttributeValueCountPairs?: DocumentAttributeValueCountPair[] | null;
DocumentAttributeValueType?: DocumentAttributeValueType | null;
}

§Properties

§
DocumentAttributeKey?: string | null
[src]

The key for the facet values. This is the same as the DocumentAttributeKey provided in the query.

§
DocumentAttributeValueCountPairs?: DocumentAttributeValueCountPair[] | null
[src]

An array of key/value pairs, where the key is the value of the attribute and the count is the number of documents that share the key value.

§
DocumentAttributeValueType?: DocumentAttributeValueType | null
[src]

The data type of the facet value. This is the same as the type defined for the index field when it was created.