cursorless
cursorless copied to clipboard
Control algolia crawler and index settings from ci
The problem
Unfortunately, today, the source of truth for the Algolia search configuration lives in the Algolia web console, but in the future, we'd like to use these files as the source of truth and deploy them to Algolia in CI.
The solution
The crawler
We could fork https://github.com/algolia/algoliasearch-crawler-github-actions, and read the config from https://github.com/cursorless-dev/cursorless/blob/main/website/config/algolia/crawler-settings.js instead of using the config in https://github.com/algolia/algoliasearch-crawler-github-actions/blob/f0034f35d49b1e016fe00b285ded07c58c32b5bb/src/helpers.ts#L9.
The index settings
Could use probably use the api in https://www.algolia.com/doc/api-reference/api-methods/set-settings/