Advanced Search: Add Traversal Ids for Commits Index

Overview

Searches that are across entire groups can be slow if the Group has a large number of projects. This is because the query will contain all the project IDs that are part of the selected group.

Adding the Group Hierarchy in the indexed document will allow for the query to specify the group level as a filter and keep eliminate the need to have a large list of project IDs included in the query.

Using the new field in the query will be handled in a related issue

Steps

  • Add traversal_ids to Commits index mapping MR example
  • Index traversal_ids to Commits Index
  • Backfill traversal_ids for Commits MR example
Edited by 🤖 GitLab Bot 🤖