During the setup of your Search service application, if you created your search service using PowerShell, you’re be able to specify a default search index location similar to the lines below.
$NewIndexPath = “D:\TOP\SearchIndex”
New-SPEnterpriseSearchIndexComponent –SearchTopology $newtopology -SearchServiceInstance $hostWF1 -IndexPartition 0 -RootDirectory $NewIndexPath
However, believing that you’ve set it properly, and actually being able to see that it’s set properly are two very different things.
In order to determine what your actual Search Service Application settings are, simply run the following lines in a PowerShell prompt.
$searchServiceApp = Get-SPServiceApplication -Name “Search Service Application”
$activeTopology = $searchServiceApp.ActiveTopology
Get-SPEnterpriseSearchComponent -SearchTopology $activeTopology
This will give you a result similar to below.
You’ll notice that on server VM06 (the Green Star) that the search Index is set to something other than the default (in this case D:\Top\Index). And VM05 (the Red Star) is using the default value (hence it’s blank in this case). Of course, this begs the question…
What is the Default Search Index Location?
To find out the default search index location, you can run a different set of PowerShell commands as follows.
$ssi = Get-SPEnterpriseSearchServiceInstance
This will return something similar to the following result.
Strangely it appears in both the two sections, and is identical in both – but whatever, that’s all you need to know. J
Note: In the case above we installed SharePoint to the D drive, not the C drive, hence why the default index is on D.