Skip to content

Include versions in Algolia search

To include versions in Algolia search, we need to edit Algolia's config (crawler) to include search results for versions.

Our latest docs URL scheme is https://docs.gitlab.com/{version}/{selector_key}/path/to/file:

  • {version} translates to major.minor numbers like 10.3, 10.4, etc.
  • {selector_key} is one of ee, omnibus, runner.

🤔 I guess selector_key is not an issue, since Algolia indexes the whole website in one go.

Implementation

See https://docsearch.algolia.com/docs/record-extractor#indexing-content-for-faceting

We might be able to take a look of the old configs, before the DocSearch v3 migration and see how this works:

Edited by Achilleas Pipinellis