Interface: ITopicAggregationService
Defined in: Services/StudyOverview/ITopicAggregationService.ts:14
Aggregates topical-index data across multiple topical modules for a given (book, chapter), pre-computing parent chains and recursive verse counts so the per-chapter call is a hot-loop dictionary lookup rather than a series of CTE queries.
For best amortization, instantiate the service once per generation run
(not once per chapter): TopicAggregationService.from(modules) performs the
one-time bulk reads and pre-computation, then getChapterTopics is cheap.
Methods
getChapterTopics()
getChapterTopics(
book,chapter):TopicsByVerse
Defined in: Services/StudyOverview/ITopicAggregationService.ts:19
Build the verse-keyed topic dictionary for a single chapter. Modules are visited in array order; output preserves that order.
Parameters
book
number
chapter
number