Skip to content

queryMatchesPage

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/manuals-insights/manuals-insights.service.ts

Does a support query "resemble" a manual page? True when any meaningful query term appears in the page's title or slug (fuzzy, term-overlap). Used both ways:

  • weakPages: a miss that DOES resolve to a page → that page is under-serving.
  • topicGaps: a miss that resolves to NO page → the topic is undocumented.

Signature

ts
function queryMatchesPage(query: string, page: { title: string; slug: string }): boolean

Parameters

NameType
querystring
page{ title: string; slug: string }

Returns: boolean

Was this page helpful?

Download as PDF