New-SPEnterpriseSearchQueryScopeDisplayGroupScope

Description
This cmdlet creates adds a scope to a scope display group given a ScopeDisplayGroupPipeBind and ScopePipeBind

Example (Adds two scopes to the scope display group "New Scope Display Group" setting "People" as the default)
$searchapp = Get-SPEnterpriseSearchServiceApplication "Search Service Application"
$group = New-SPEnterpriseSearchQueryScopeDisplayGroup -Name "New Scope Display Group" -url http://sp2010 -SearchApplication $searchapp

$scope = Get-SPEnterpriseSearchQueryScope -Identity "My Scope" -SearchApplication $searchapp
New-SPEnterpriseSearchQueryScopeDisplayGroupScope -ScopeDisplayGroup $group -Scope $Scope

$scope = Get-SPEnterpriseSearchQueryScope -Identity "People" -SearchApplication $searchapp
New-SPEnterpriseSearchQueryScopeDisplayGroupScope -ScopeDisplayGroup $group -Scope $Scope -default $true

Author: Corey Roth (@coreyroth)
Creation Date: 8/9/2010
http://www.dotnetmafia.com

Last edited Aug 11, 2010 at 6:33 AM by cdog, version 4

Comments

No comments yet.