Skip to content

buildSearchIndex

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/technical-docs/search-index.ts

Pure transform: corpus pages + entity graph → a compact static search index. Deterministic for identical inputs (stable order, stable ids).

Signature

ts
function buildSearchIndex(slugWithId: string, pages: RawIndexPage[], entities: GraphEntity[], relationships: GraphRelationship[], generatedAt: Date): StaticSearchIndex

Parameters

NameType
slugWithIdstring
pagesRawIndexPage[]
entitiesGraphEntity[]
relationshipsGraphRelationship[]
generatedAtDate

Returns: StaticSearchIndex

Was this page helpful?

Download as PDF