Index Helix Search
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:
-
Select the Account arrow from the top navigation bar.
-
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:
-
Select the Filter tab.
-
Click Add and a dialog opens.
-
Enter the specific Depot Path you want to add the filter to.
-
Enter the Type of the filter. For example, INCLUDE or EXCLUDE.
-
Click Add to apply the filter.
Filter on asset types
When indexing your Helix Core Server, you can filter assets based on their file type. This helps to speed up the indexing process and reduce the size of your Elasticsearch index.
The filter applies to the content of the file being indexed. This means that while the system will not index the actual content of the file (such as the text or contents of a .zip file), it will still index the meta-data associated with that file. The meta-data includes information like the file name, creation date, who created the file, and other relevant details.
For example, if you search for a file by name or other meta-data, it will show up in the results. However, if you're searching for content within the file (for example, the word "house" inside a .zip file), it will not appear in the results if the filter have been applied (because the content is not indexed).
File filter mappings are stored in etc/indexFilter.json file, and file types are stored in etc/typesFilter.json file.
By default, Helix Search includes the following file types for content indexing:
-
SOURCE: various types of source code
-
AUDIO: all audio files
-
VIDEO: all video files
-
IMAGE: all image files
-
HEIC: HEIC files
-
VECTOR: Vector-based image files
-
DIGITAL: Digital files
By default we exclude the following file types:
-
EXECUTABLE: all executable files
-
PACKAGE: all package files
-
COMPRESS: all compressed file types
-
UNKNOWN_TEXT: text files that Helix Search does not recognize.
-
UNKNOWN: Any other unrecognized file types.
To filter based on asset types:
-
Select the Types tab.
All the available asset types are displayed.
-
Select an asset type once to filter indexed assets by that asset type. Select an asset type twice to exclude that asset type.
-
Click Save to apply your selection.
If there is a file type you would like Helix Search to support, email Perforce support.
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.
-
Custom: Indexes based on your selections in the Revision Ranges tab, Depot Path tab, and By User tab. See Custom indexing.
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.
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:
-
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.
-
If you want to use more than one tab for your indexing request, set the other tabs before going to the next step.
-
Click Execute. A dialog appears providing an estimate for the indexing operation.
-
Click Index to start indexing.
Depot Path tab
To perform indexing on all changes in a depot path, in the Depot Path tab:
-
Enter the depot path you want to index.
-
If you want to use more than one tab for your indexing request, set the other tabs before going to the next step.
-
Click Execute. A dialog appears providing an estimate for the indexing operation.
-
Click Index to start indexing.
By User tab
To perform indexing for a specific user, in the User tab:
-
Enter the name of the Helix Core Server user.
-
If you want to use more than one tab for your indexing request, set the other tabs before going to the next step.
-
Click Execute. A dialog appears providing an estimate for the indexing operation.
-
Click Index to start indexing.