Interface ElementSearchHit

interface ElementSearchHit {
    _type: string;
    author?: User;
    element_name: AttributeData<string>;
    hash: string;
    "hits-by-attributes": HitsByAttributes[];
    links?: RestApiLink[];
    "matched-attributes"?: Record<string, AttributeData<AttributeValue>>;
    organization: string;
    "projected-attributes"?: Record<string, AttributeData<AttributeValue>>;
    timestamp?: string;
    updatedAt?: string;
    updatedBy?: User;
}

Hierarchy (View Summary)

Properties

_type: string
author?: User
element_name: AttributeData<string>
hash: string
"hits-by-attributes": HitsByAttributes[]
links?: RestApiLink[]
"matched-attributes"?: Record<string, AttributeData<AttributeValue>>

Attributes whose value matched the search term but that are not already projected, rendered in the same shape as a normal element load. Present only when the request set matched: true; the card shows and highlights these below the projected attributes.

organization: string
"projected-attributes"?: Record<string, AttributeData<AttributeValue>>

Attributes projected onto the result card, keyed by attribute name and rendered in the same shape as a normal element load. Present only when the request carried a projection map with entries for this element's type.

timestamp?: string
updatedAt?: string
updatedBy?: User