Freigeben über


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.

  1. Verify that you have Farm Administrator permissions.
  2. On Microsoft SharePoint Server, open a SharePoint 2010 Management Shell:
    1. On the Start menu, click All Programs.
    2. Click Microsoft SharePoint 2010 Products.
    3. Click SharePoint 2010 Management Shell.
  3. 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>")'