Index Helix Search

Important

You must be an admin user to perform indexing in Helix Search.

This section contains information about how to index the Helix Core Server from the Helix Search web UI.

To index Helix Search from the web UI:

  1. Select the Account arrow from the top navigation bar.

  2. Select Indexing and the Indexing tab is displayed.

Add an index filter

You can include or exclude a specific depot path when indexing the Helix Core Server.

Helix Search provides a default mapping that excludes depots that are not local or stream, and it also excludes the following depot paths:

  • //.swarm/...

  • //.p4-extensions/...

  • //.../.git/...

The index filter mappings are saved to the etc/indexFilter.json file.

To set filters on indexing your Helix Core Server:

  1. Select the Filter tab.

  2. Click Add and a dialog opens.

  3. Enter the specific Depot Path you want to add the filter to.

  4. Enter the Type of the filter. For example, INCLUDE or EXCLUDE.

  5. Click Add to apply the filter.

Indexing over a period of time

You can perform indexing based on specific time periods. Use the Index History slider to select the time period for which you want to perform indexing and click the Execute button.

The Index History slider provides the following time period options:

  • Last Day: Indexes all changes committed in the previous day.

  • Last Week: Indexes all changes committed in the last week.

  • Last Month: Indexes all changes committed in the last month.

  • Last Year: Indexes all changes committed in the last year.

  • Everything: Indexes the entire Helix Core Server.

  • Note

    Perforce recommends you only use the Index Everything option for the first time you index or re-index on a small server. Indexing your entire Helix Core Server database can take a long time to complete.

  • Custom: Indexes based on your selections in the Revision Ranges tab, Depot Path tab, and By User tab. See Custom indexing.

Force update

Toggle Force Update to enable or disable re-indexing of existing indexed changes.

  • When Force Update is enabled, Helix Search updates existing changes.

  • When Force Update is disabled, Helix Search skips changes that have already been indexed.

Custom indexing

You can customize your selections to perform indexing on the Helix Core Server by using the Revision Range, Depot Path, and User tabs. The tabs can be used on their own or combined to create a custom indexing requests. For example, you can index a range of change numbers, in a depot path for a specific user. If you combine tabs, don't click Execute or Index until you have finished setting up your indexing request.

Revision Ranges tab

To perform indexing on a specific range of change numbers or dates (YYYY/MM/DD), in the Revision Ranges tab:

  1. Enter the Helix Core Server change number or date you want to start indexing from and the change number or date you want to stop indexing at.

  2. If you want to use more than one tab for your indexing request, set the other tabs before going to the next step.

  3. Click Execute. A dialog appears providing an estimate for the indexing operation.

  4. Click Index to start indexing.

Depot Path tab

To perform indexing on all changes in a depot path, in the Depot Path tab:

  1. Enter the depot path you want to index.

  2. If you want to use more than one tab for your indexing request, set the other tabs before going to the next step.

  3. Click Execute. A dialog appears providing an estimate for the indexing operation.

  4. Click Index to start indexing.

By User tab

To perform indexing for a specific user, in the User tab:

  1. Enter the name of the Helix Core Server user.

  2. If you want to use more than one tab for your indexing request, set the other tabs before going to the next step.

  3. Click Execute. A dialog appears providing an estimate for the indexing operation.

  4. Click Index to start indexing.