Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Azure DevOps Server | Azure DevOps Server 2022
You can manage your search extension and indexing status. These actions include the following tasks:
Prerequisites
| Category | Requirements |
|---|---|
| Permissions | Member of the Project Collection Administrators group. |
| Tasks | Complete Install and configure Search. |
Manage indexing
To manage search, run PowerShell and SQL scripts. You can download all of these scripts from the Code-Search GitHub repository. Use the Download ZIP option to download all scripts into a local folder on the server that runs the database for Azure DevOps Server.
The PowerShell scripts require the SQL script files. Make sure the SqlScripts folder and its contents are present, along with the PowerShell scripts.
Check indexing status
To check the indexing status after you configure Search, or after you install the extension for a collection, complete the following steps.
Run the
ExtensionInstallIndexingStatus.ps1script with administrative privileges and enter the following information:- The SQL server instance name where the Azure DevOps Server configuration database is located.
- The name of the Azure DevOps Server collection database.
- The name of the Azure DevOps Server configuration database.
- The name of the collection.
- The number of previous days to check indexing status.
Review the following outputs:
- Collection indexing was triggered successfully: Indicates that indexing is in progress.
- Repositories Indexing Completed: Lists repositories whose indexing completed and is searchable.
- Status of repositories currently indexing: Lists the names of all the repositories that are still being indexed and are partially searchable. It takes some time for indexing to complete.
Run the
RecentIndexingActivity.ps1script at intervals for indexing progress. This script takes the same parameters as theExtensionInstallIndexingStatus.ps1script:- Repositories completed fresh indexing: Shows number of repositories for which indexing completed within the specified time interval.
- Count of repositories with fresh indexing in progress: Shows the number of repositories for which indexing isn't complete. These repositories are still being indexed and are partially searchable.
- Repositories completed continuous indexing: Shows the number of commits processed in the specified time interval. The number might not exactly match the total number of pushes to the repository because merges are committed as they're indexed.
- Count of repositories with continuous indexing in progress: Shows the number of repositories for which the commits are still being processed. These repositories show incomplete results until indexing is completed.
- Count of indexing job failures: Shows the number of indexing jobs that failed. Repositories associated with these indexing jobs could potentially show incomplete results until later indexing jobs for the same repositories patched the failed indexing.
If you encounter any problems, get support on the Developer Community.
Pause indexing
To pause all indexing, run PauseSearchIndexing.ps1.
Pausing indexing is useful if there are spikes in CPU utilization after configuring Search.
You're prompted to enter the following information.
- The SQL server instance name where the Azure DevOps Server configuration database is
- The name of the Azure DevOps Server configuration database
Resume indexing
If you paused indexing, run ResumeIndexing.ps1 to start it again.
You're prompted to enter the following information.
- The SQL server instance name where the Azure DevOps Server configuration database is
- The name of the Azure DevOps Server configuration database
Reindex a repository or collection
To reindex a Git or TFVC repository, run the appropriate version of the script, Re-IndexingRepository.ps1, for your Azure DevOps Server version.
You're prompted to enter the following information.
- The SQL server instance name where the Azure DevOps Server configuration database is
- The name of the Azure DevOps Server collection database
- The name of the Azure DevOps Server configuration database
- The type of reindexing to execute, either
Git\_RepositoryorTFVC\_Repository - The name of the collection
- The name of the repository to reindex
To reindex a collection, run the script TriggerCollectionIndexing.ps1.
You're prompted to enter the following information.
- The SQL server instance name where the Azure DevOps Server configuration database is
- The name of the Azure DevOps Server collection database
- The name of the Azure DevOps Server configuration database
- The name of the collection
- The entities to reindex, either
All,Code,WorkItem, orWiki
Search limitations
If you do a disaster recovery (DR) operation and move your server back to an earlier snapshot of your SQL database, reindex all your collections.