I am trying to script the setup of my SharePoint 2013 farm. I'm getting something wierd on the creation of the Search service app. It complains that the "indexLocation" parameter cannot be null. But there is no such parameter. According to http://technet.microsoft.com/en-us/library/ff607751.aspx, the only required parametes are name and application pool.
The SA seems to get created anyway (I haven't tested it yet), but huh???
$SearchSA=New-SPEnterpriseSearchServiceApplication-Name$searchSAName-ApplicationPool$saAppPoolName-DatabaseName($dbNamePrefix+"Search")
New-SPEnterpriseSearchServiceApplication : Value cannot be null.
Parameter name: indexLocation
At line:7 char:13
+ $SearchSA = New-SPEnterpriseSearchServiceApplication -Name $searchSAName -Applic ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Offic...viceApplication:NewSearchServiceApplication) [New-SPEnterpriseSearchServiceApplication], ArgumentNullEx
ception
+ FullyQualifiedErrorId : Microsoft.Office.Server.Search.Cmdlet.NewSearchServiceApplication