Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 2.05 KB

File metadata and controls

39 lines (32 loc) · 2.05 KB

ScoopSearch Indexer

Indexer workflow Coverage

This repository contains the Indexer used to build and maintain the Scoop applications index used by https://scoopinstaller.github.io/

Indexing

The indexer runs every 2 hours and search for buckets across the whole GitHub site + some additional inclusions/exclusions.

Configuration to build and debug the Indexer

  • Install .NET 8.0 SDK
  • Create an Azure Search service
    • Retrieve the name (in Properties) and use it for ServiceUrl
    • Retrieve the primary admin key (in Keys) and use it for AdminApiKey
  • Create a GitHub access token without any scope and use it for Token
  • Create a file src/ScoopSearch.Indexer.Console/appsettings.Production.json with the following content
{
    "AzureSearch": {
        "ServiceUrl": "https://[SERVICENAME].search.windows.net",
        "AdminApiKey": "[ADMINAPIKEY]",
        "IndexName": "[INDEXNAME]"
    },

    "GitHub": {
        "Token": "[GITHUBTOKEN]"
    }
}
  • Alternatively, you can declare environment variables
AzureSearch__ServiceUrl = "https://[SERVICENAME].search.windows.net"
AzureSearch__AdminApiKey = "[ADMINAPIKEY]"
AzureSearch__IndexName: "[INDEXNAME]"
GitHub__Token = "[GITHUBTOKEN]"