Create a Scope to include multiple content sources or sites in FAST Search for SharePoint 2010
To limits the results to specific content sources or sites in FAST Search for SharePoint 2010 you can create a Scope using PowerShell with FAST Query Language (FQL).
In this example we will creates a scope which include only three content sources.
- Verify that you have Farm Administrator permissions.
- On Microsoft SharePoint Server, open a SharePoint 2010 Management Shell:
- On the Start menu, click All Programs.
- Click Microsoft SharePoint 2010 Products.
- Click SharePoint 2010 Management Shell.
- At the command prompt, type the following command:
New-SPEnterpriseSearchQueryScope -SearchApplication "Test Query SSA" -Name TestName -Description "Test Description" -DisplayInAdminUI 1 -ExtendedSearchFilter 'contentsource:or("ContentSource1", " ContentSource2"," ContentSource3")'
And you can also do the same with site url
'site:or("<ScopeSite1URL>", "<ScopeSite2URL>")'