One of the new features of TFS 2017 is the introduction of a code search service. This service is built on top of a customized version of ElasticSearch and can be installed together with the rest of the product.
However the experience is still somewhat rough around the edges.
For example deleting the ElasticSearch service can’t be done through Add/Remove Programs or through an UI but you have to fallback to Powershell instead:
- Open Powershell as an administrator
- Go to the folder where ConfigureTFSSearch.ps1 is installed.
- Run the script again with the remove option: "ConfigureTFSSearch.ps1 -RemoveTFSSearch"
In case you cannot find this Powershell commandlet an alternative option is to browse to the ElasticSearch bin directory and execute the following command:
- service.bat remove