Global search should index CI artifacts and GitLab Pages compiled output

Problem to solve

Suggested by @ali-gitlab that it would be good if we could dogfood our search functionality for the handbook. One problem is that we are only indexing the source files in the repo and not indexing the output of the CI jobs that compile the website.

Intended users

Further details

Proposal

It would be interesting to add a feature to GitLab CI where you can specify artefacts that you want indexed and then these would become searchable via some API. On top of that you could then allow for anyone to easily build search functionality into any GitLab Pages static site based on this index.

Permissions and Security

Documentation

Availability & Testing

What does success look like, and how can we measure that?

What is the type of buyer?

Is this a cross-stage feature?

Links / references