Starting from Team Foundation Server 2017, the Code Search feature that was available for a while in VSTS, gets an on-premise equivalent.
The feature is built on top of a customized version of ElasticSearch. However the integration between the 2 products(TFS and ElasticSearch) is rather limited right now.
To help you maintain your ElasticSearch instance, Microsoft has a set of Powershell scripts available that allow you to:
- Pause and Restart indexing
- Clean and reset your ElasticSearch instance
- Trigger code indexing
- Etc…
A must have for every TFS administrator…