EU Parliament Monitor - API Documentation - v0.7.19
    Preparing search index...

    Function findRelatedArticles

    • Find articles that share topics or actors with the supplied lists.

      Results are scored by overlap count and returned in descending relevance order.

      Parameters

      • index: IntelligenceIndex

        Intelligence index to search

      • topics: string[]

        Key topics to match against keyTopics

      • actors: string[]

        Key actors to match against keyActors

      • maxResults: number = DEFAULT_MAX_RELATED

        Maximum number of results to return (default: 10)

      Returns ArticleIndexEntry[]

      Scored, sorted array of matching article entries