Skip to Content

Interface Tag

One tag, narrowing what a memory or a search applies to.

The service lowercases each field and folds hyphens to underscores, so Language and language are the same tag type.

Which types exist, which of them filter rather than merely boost, and which carry a version are all per-domain; MemoryOperations.listDomains describes them. Read that before the first tagged search: a wrong boosting tag costs ranking, but a wrong filtering tag narrows the search to nothing, and the empty result is indistinguishable from the domain knowing nothing. Start without tags if unsure.

A version on a type that does not carry one is dropped by the service. Tags beyond DomainEntry.maxTagsPerQuery are trimmed rather than refused, so a call carrying too many succeeds with the extras silently gone. The SDK writes a debug record when it is the one trimming; when it cannot see the domain's cap the service trims instead, and nothing says so.

interface Tag {
    type: string;
    value: string;
    version?: string;
}
Index
type: string

The kind of thing being named, such as language or framework.

value: string

The thing itself, such as typescript.

version?: string

An optional version, on the tag types that take one.