This script provides a set up actions to configure all your Fast Search for SharePoint 2010 servers. Most of the actions are related to document processor servers, but the script also copies all files from an overlay directory to the live fastsearch directory. This script can be used in conjunction with the FastAdminOnlyServerSetup script as well as SharePointServerSetup. Also, this can be executed via the runDeploy parameter of the download script.

 

 

PowerShell
Edit|Remove
param([string]$configDir="config", [switch]$viewAllCrawledProperties) 
 
function mainwork 
{ 
 
$homedir=$pwd.Path 
$scriptdir = ".\scripts\TechNet Script Repository\SharePoint\Search Management" 
cd $scriptdir 
 
if($resetPipelineExtensibility) 
{ 
 
} 
 
if($viewAllCrawledProperties) 
{ 
    # NOTE!!! This powershell script will OVERWRITE your existing pipelineextensibility.xml file 
    .\View-AllCrawledProperties-PipelineExtensibility.ps1 -getFASTCrawledProperties -deploy 
} 
cd $homedir 
 
#net stop FS4SPPipelineExtensibilityWebService 
Copy-Item -Path .\$configDir\FASTSearch\overlay\* -Destination $env:fastsearch -Force -Recurse 
 
#net start FS4SPPipelineExtensibilityWebService 
psctrl reset 
Start-Sleep -Seconds 5 
nctrl restart procserver_1 
nctrl restart procserver_2 
nctrl restart procserver_3 
nctrl restart procserver_4 
 
} 
 
mainwork