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

EnumPropertyOptions

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

The options for enum properties, which allow you to define a restricted set of strings to match user queries, set rankings for those string values, and define an operator name to be paired with those strings so that users can narrow results to only items with a specific value. For example, for items in a request tracking system with priority information, you could define p0 as an allowable enum value and tie this enum to the operator name priority so that search users could add priority:p0 to their query to restrict the set of results to only those items indexed with the value p0.

interface EnumPropertyOptions {
operatorOptions?: EnumOperatorOptions;
orderedRanking?: "NO_ORDER" | "ASCENDING" | "DESCENDING";
possibleValues?: EnumValuePair[];
}

§Properties

§
operatorOptions?: EnumOperatorOptions
[src]

If set, describes how the enum should be used as a search operator.

§
orderedRanking?: "NO_ORDER" | "ASCENDING" | "DESCENDING"
[src]

Used to specify the ordered ranking for the enumeration that determines how the integer values provided in the possible EnumValuePairs are used to rank results. If specified, integer values must be provided for all possible EnumValuePair values given for this property. Can only be used if isRepeatable is false.

§
possibleValues?: EnumValuePair[]
[src]

The list of possible values for the enumeration property. All EnumValuePairs must provide a string value. If you specify an integer value for one EnumValuePair, then all possible EnumValuePairs must provide an integer value. Both the string value and integer value must be unique over all possible values. Once set, possible values cannot be removed or modified. If you supply an ordered ranking and think you might insert additional enum values in the future, leave gaps in the initial integer values to allow adding a value in between previously registered values. The maximum number of elements is 100.