Skip to content

Interface: OsfSearchEntityDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / OsfSearchEntityDto

Defined in: src/types/query.ts:88

An entity matched by a structured search.

features keys are feature names of the matched term (data, not schema), so they arrive verbatim. Each value is the feature’s value rendered as a string.

communityId: string

Defined in: src/types/query.ts:96

Community the entity belongs to.


features: Record<string, string>

Defined in: src/types/query.ts:98

Key features of the entity, each value rendered as a string.


matchDegree: number

Defined in: src/types/query.ts:94

Match degree in [0, 1].


optional matchReason?: string

Defined in: src/types/query.ts:102

Why this entity matched.


optional name?: string

Defined in: src/types/query.ts:100

Human-readable name, when the term has one.


sortId: string

Defined in: src/types/query.ts:92

Sort id of the matched entity. Resolve it to a name through the sort catalog.


termId: string

Defined in: src/types/query.ts:90

Term id of the matched entity.