New-SPEnterpriseSearchServiceApplicationProxy

將搜尋應用程式 Proxy 加入伺服器陣列。

Syntax

New-SPEnterpriseSearchServiceApplicationProxy
   [[-Name] <String>]
   -SearchApplication <SearchServiceApplicationPipeBind>
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Confirm]
   [-MergeWithDefaultPartition]
   [-Partitioned]
   [-WhatIf]
   [<CommonParameters>]
New-SPEnterpriseSearchServiceApplicationProxy
   [[-Name] <String>]
   -Uri <String>
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Confirm]
   [-MergeWithDefaultPartition]
   [-Partitioned]
   [-WhatIf]
   [<CommonParameters>]

Description

This cmdlet contains more than one parameter set. You may only use parameters from one parameter set and you may not combine parameters from different parameter sets. For more information about how to use parameter sets, see Cmdlet parameter sets.

此 Cmdlet 會建立搜尋服務應用程式的 Proxy。 Web 應用程式或其他服務取用者可以使用搜尋服務應用程式 Proxy,以使用搜尋應用程式所提供的功能。

此 Cmdlet 包含一個以上的參數集。 您可能只會使用到一個參數集中的參數,而且您無法合併不同參數集中的參數。 如需如何使用參數集的詳細資訊,請參閱 Cmdlet 參數集 https://msdn.microsoft.com/en-us/library/dd878348(VS.85).aspx)。

如需適用於 SharePoint 產品的 Windows PowerShell 權限及最新資訊,請參閱線上文件 SharePoint Server Cmdlet

範例

------------------範例------------------

$ssa = Get-SPEnterpriseSearchServiceApplication
New-SPEnterpriseSearchServiceApplicationProxy -Name 'Search Service Application Proxy' -SearchApplication $ssa

此範例會將 Search Service 應用程式 Proxy 新增至 Search Service 應用程式。

參數

-AssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Confirm

在執行命令之前,提示您確認操作。 如需詳細資訊,請輸入下列命令:get-help about_commonparameters

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-MergeWithDefaultPartition

合併 Proxy 的索引磁碟分割與 Search Service 應用程式的預設索引磁碟分割集合。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Partitioned

指定 Search Service 應用程式必須使用 Web 主控模式。 Web 主控模式可區隔出指定主控訂閱的結果。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SearchApplication

指定要用於搜尋之搜尋應用程式的 URI。

此類型必須是格式為 file: \ \ server_name\searchapp 的有效 URI。

Type:SearchServiceApplicationPipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Uri

指定要用於搜尋之搜尋應用程式的 URI。

此類型必須是格式為 file: \ \ server_name\searchapp 的有效 URI。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WhatIf

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-名稱

指定要建立之搜尋應用程式 Proxy 的顯示名稱。

此類型必須是有效的字串,例如 SearchAppProxy1。

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition