I created this custom function to enable Continuous Crawls on the "Local SharePoint sites" Content Source. These way search works right out of the box.
I put this function in my custom function section after all servers and services have been created.
```
Function Enable-ContinuousCrawls(){
$ssa = Get-SPEnterpriseSearchServiceApplication
$cs = Get-SPEnterpriseSearchCrawlContentSource -SearchApplication $ssa -Identity "Local SharePoint sites"
Set-SPEnterpriseSearchCrawlContentSource -Identity $cs -EnableContinuousCrawls $true
}
```
I put this function in my custom function section after all servers and services have been created.
```
Function Enable-ContinuousCrawls(){
$ssa = Get-SPEnterpriseSearchServiceApplication
$cs = Get-SPEnterpriseSearchCrawlContentSource -SearchApplication $ssa -Identity "Local SharePoint sites"
Set-SPEnterpriseSearchCrawlContentSource -Identity $cs -EnableContinuousCrawls $true
}
```