Skip to content

Update Algolia index name

Sarah German requested to merge revert-2b012ee7 into main

What does this MR do and why

Reverts !3130 (merged).

We needed to spin up a new index, gitlab_production, yesterday after the primary index (gitlab) was deleted. We used a different name for the new index in the event of Algolia support being able to restore the original (but this ultimately did not happen).

Today I created a new gitlab index that we can now use again for production. It's worth switching the site back over to the gitlab index because this is the same index used by older online versions of the site (e.g, 15.2 docs), which we did not modify yesterday. The Algolia index contains records for all online versions, so we only need one active instance.

Closes #1278 (closed)

Screenshots

Algolia indices
image

Index listing: https://www.algolia.com/apps/3PNCFOU757/indices

Both gitlab and gitlab_production are active, so we can switch back to gitlab without disrupting search functionality on the site. The record count varies from crawl to crawl and can be ignored for this change.

How to test locally

  • Set up a local site. When running nanoc locally, site should default to Algolia search.
  • Check out this branch and verify you can run a search without errors in the browser console (note that results will link to the production site; this is expected)
Edited by Sarah German

Merge request reports