Skip to content

Commit c6a9eff

Browse files
authored
Merge pull request MicrosoftDocs#623 from tseward/patch-309
Update Set-SPEnterpriseSearchResultSource.md
2 parents 7b71db8 + 55ac344 commit c6a9eff

File tree

1 file changed

+47
-11
lines changed

1 file changed

+47
-11
lines changed

sharepoint/sharepoint-ps/sharepoint-server/Set-SPEnterpriseSearchResultSource.md

Lines changed: 47 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ The result source cannot be a built-in source (a built-in source has the BuiltIn
3333

3434
### --------------------EXAMPLE 1---------------------
3535
```
36-
C:\PS>$ssa = Get-SPEnterpriseSearchServiceApplication -Identity "Search Service Application"
37-
$owner = Get-SPEnterpriseSearchOwner -Level SSA
38-
$customResultSource = New-SPEnterpriseSearchResultSource -SearchApplication $ssa -Owner $owner -ProviderId fa947043-6046-4f97-9714-40d4c113963d -Name "Custom SharePoint Result Source"
39-
Set-SPEnterpriseSearchResultSource -Identity $customResultSource -Name "Basic SharePoint Result Source"
36+
PS C:\>$ssa = Get-SPEnterpriseSearchServiceApplication
37+
PS C:\>$owner = Get-SPEnterpriseSearchOwner -Level SSA
38+
PS C:\>$customResultSource = New-SPEnterpriseSearchResultSource -SearchApplication $ssa -Owner $owner -ProviderId fa947043-6046-4f97-9714-40d4c113963d -Name "Custom SharePoint Result Source"
39+
PS C:\>Set-SPEnterpriseSearchResultSource -Identity $customResultSource -Name "Basic SharePoint Result Source"
4040
```
4141

4242
This example updates the name of the result source and the identity of the result source is specified as a result source instance.
@@ -45,10 +45,10 @@ SearchApplication and Owner are not required for this update operation.
4545

4646
### --------------------EXAMPLE 2---------------------
4747
```
48-
C:\PS>$ssa = Get-SPEnterpriseSearchServiceApplication -Identity "Search Service Application"
49-
$owner = Get-SPEnterpriseSearchOwner -Level SSA
50-
$customResultSource = New-SPEnterpriseSearchResultSource -SearchApplication $ssa -Owner $owner -ProviderId fa947043-6046-4f97-9714-40d4c113963d -Name "Custom SharePoint Result Source"
51-
Set-SPEnterpriseSearchResultSource -SearchApplication $ssa -Owner $owner -Identity "Custom SharePoint Result Source" -Description "A custom SharePoint Result Source for demonstration purposes"
48+
PS C:\>$ssa = Get-SPEnterpriseSearchServiceApplication
49+
PS C:\>$owner = Get-SPEnterpriseSearchOwner -Level SSA
50+
PS C:\>$customResultSource = New-SPEnterpriseSearchResultSource -SearchApplication $ssa -Owner $owner -ProviderId fa947043-6046-4f97-9714-40d4c113963d -Name "Custom SharePoint Result Source"
51+
PS C:\>Set-SPEnterpriseSearchResultSource -SearchApplication $ssa -Owner $owner -Identity "Custom SharePoint Result Source" -Description "A custom SharePoint Result Source for demonstration purposes"
5252
```
5353

5454
This example updates the description of the result source and the identity of the result source is specified by name.
@@ -80,13 +80,18 @@ Accept wildcard characters: False
8080
```
8181
8282
### -AuthenticationType
83-
Specifies an authentication type for the result source.
84-
If parameter is not specified, the value is unchanged.
83+
Specifies an authentication type for the result source. If parameter is not specified, the value is unchanged.
84+
8585
A specific set of authentication types are supported for each search provider type and if parameter is not specified, the authentication type will default based on search provider type.
86+
8687
This cmdlet supports the following set of authentication mechanisms and corresponding types: Default SharePoint Authentication (FederationAuthType.LocalNTAuth), Basic Authentication (FederationAuthType.SingleAccountBasicAuth - specify UserName and Password), Default Remote SharePoint Authentication (FederationAuthType.PerUserBasicAuth), Single Sign On (FederationAuthType.SSO - requires SsoId to be specified), Anonymous (FederationAuthType.Anonymous), Digest Authentication (FederationAuthType.SingleAccountDigest - specify UserName and Password), NTLM Application Pool Identity (FederationAuthType.ApplicationPoolIdentity), NTLM User Name and Password (FederationAuthType.SingleAccountNTLM - specify UserName and Password).
88+
8789
When using a Local SharePoint Search/Local SharePoint People Search provider, then FederationAuthType.LocalNTAuth (default) and FederationAuthType.SingleAccountBasicAuth are supported.
90+
8891
When using a Remote SharePoint Search/Remote SharePoint People Search provider, then FederationAuthType.PerUserBasicAuth (default) and FederationAuthType.SSO are supported.
92+
8993
When using OpenSearch 1.0/1.1 search provider, then the following authentication types are supported: FederationAuthType.Anonymous (default), FederationAuthType.SingleAccountBasicAuth, FederationAuthType.SingleAccountDigest, FederationAuthType.SingleAccountNTLM, and FederationAuthType.ApplicationPoolIdentity.
94+
9095
All authentication types are listed in the enum FederationAuthType.
9196
9297
@@ -105,8 +110,11 @@ Accept wildcard characters: False
105110
106111
### -AutoDiscover
107112
Specifies whether to use automatic discovery of the Exchange server endpoint for the result source.
113+
108114
Setting value to true ($true) states that automatic discovery should be used.
115+
109116
If parameter is not specified, the value is unchanged.
117+
110118
Only applicable when using an Exchange search provider.
111119
112120
@@ -143,6 +151,7 @@ Accept wildcard characters: False
143151

144152
### -Description
145153
Specifies a description for the result source.
154+
146155
If parameter is not specified, the value is unchanged.
147156

148157

@@ -161,6 +170,7 @@ Accept wildcard characters: False
161170

162171
### -Identity
163172
Specifies the result source to update.
173+
164174
The type must be a valid GUID string, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid name of a result source (for example, "Custom SharePoint Result Source"); or an instance of a valid Source object.
165175

166176

@@ -179,10 +189,14 @@ Accept wildcard characters: False
179189

180190
### -MakeDefault
181191
Specifies whether the result source should be set as default result source or not, for the scope specified by the Owner parameter.
192+
182193
If parameter is not specified, the default result source will not change.
194+
183195
Setting value to true ($true) states that the result source should be set as default.
196+
184197
Setting value to false ($false) states that the result source should not be set as default and in this case, if the result source to update is currently the default, the original default result source ("Local SharePoint Results") will be set as default again.
185-
Tip: Use instance, not name or GUID string Id, as Identity when using Makedefault, to clearly specify that Owner is only to be used for specifying the level where the result source should be set as default (if value is true) or where the default should be reset to original (if value is false).
198+
199+
Tip: Use instance, not name or GUID string Id, as Identity when using Makedefault, to clearly specify that Owner is only to be used for specifying the level where the result source should be set as default (if value is true) or where the default should be reset to original (if value is false).
186200

187201

188202
```yaml
@@ -200,8 +214,11 @@ Accept wildcard characters: False
200214

201215
### -Name
202216
Specifies a name for the result source.
217+
203218
If parameter is not specified, the value is unchanged.
219+
204220
Names must be unique at each administrative level.
221+
205222
For example, two result sources in a site cannot share a name, but one in a site and one provided by the site collection can.
206223

207224

@@ -237,7 +254,9 @@ Accept wildcard characters: False
237254

238255
### -Password
239256
Specifies the password of the user credentials to use to connect to the result source.
257+
240258
If parameter is not specified, the value is unchanged.
259+
241260
Used when authentication type (AuthenticationType) is set to a type that consumes user credentials (FederationAuthType.SingleAccountBasicAuth, FederationAuthType.SingleAccountDigest or FederationAuthType.SingleAccountNTLM).
242261

243262

@@ -256,7 +275,9 @@ Accept wildcard characters: False
256275

257276
### -ProviderId
258277
Specifies a search provider to be used by the result source.
278+
259279
If parameter is not specified, the value is unchanged.
280+
260281
Is specified as a Guid or GUID string, which must be one of the following: FA947043-6046-4F97-9714-40D4C113963D (Local SharePoint Search), E4BCC058-F133-4425-8FFC-1D70596FFD33 (Local SharePoint People Search), 1E0C8601-2E5D-4CCB-9561-53743B5DBDE7 (Remote SharePoint Search), E377CAAA-FCAF-4a1b-B7A1-E69A506A07AA (Remote SharePoint People Search), 3A17E140-1574-4093-BAD6-E19CDF1C0122 (Exchange Search), 3A17E140-1574-4093-BAD6-E19CDF1C0121 (OpenSearch 1.0/1.1).
261282

262283

@@ -275,10 +296,13 @@ Accept wildcard characters: False
275296

276297
### -QueryTemplate
277298
Specifies the query transformation template of the result source.
299+
278300
If parameter is not specified, the value is unchanged.
301+
279302
Incoming queries are changed according to the template, to use this new query text instead.
280303
Include the incoming query in the new text by using the query variable "{searchTerms}".
281304
Use this to scope results.
305+
282306
For example, to only return OneNote items, set the new text to "{searchTerms} fileextension=one".
283307
Then, an incoming query "sharepoint" becomes "sharepoint fileextension=one".
284308
Default value is {searchTerms}.
@@ -299,11 +323,17 @@ Accept wildcard characters: False
299323

300324
### -RemoteUrl
301325
Specifies a connection URL template for the result source.
326+
302327
If parameter is not specified, the value is unchanged.
328+
303329
Must be set when using a search provider that consumes it: Remote SharePoint Search, Remote SharePoint People Search, OpenSearch 1.0/1.1, and Exchange (if AutoDiscover is not turned on).
330+
304331
When using other search providers the parameter is ignored.
332+
305333
For Remote SharePoint Search/Remote SharePoint People Search, specify the address of the root site collection of the remote SharePoint farm.
334+
306335
For OpenSearch 1.0/1.1, specify the URL of the OpenSearch source.
336+
307337
Include the query in the URL by using the query variable "{searchTerms}", which will be automatically replaced with the query.
308338
For Exchange, specify the Exchange EWS URL from which to retrieve results.
309339

@@ -323,6 +353,7 @@ Accept wildcard characters: False
323353

324354
### -SearchApplication
325355
Specifies the search application.
356+
326357
The type must be a valid GUID, in the form 12345678-90ab-cdef-1234-567890bcdefgh; a valid search application name (for example, SearchApp1); or an instance of a valid SearchServiceApplication object.
327358

328359

@@ -341,8 +372,11 @@ Accept wildcard characters: False
341372

342373
### -SsoId
343374
Specifies the reverse proxy certificate Secure Store Id to use to connect to the result source.
375+
344376
If parameter is not specified, the value is unchanged.
377+
345378
Must be specified if authentication type (AUthenticationType) is set to FederationAuthType.SSO (Single Sign On).
379+
346380
If you are connecting to your intranet through a reverse proxy, enter the SSO Id of the Single Sign On entry which stores the certificate used to authenticate against the reverse proxy.
347381

348382

@@ -361,7 +395,9 @@ Accept wildcard characters: False
361395

362396
### -UserName
363397
Specifies the user name of the user credentials to use to connect to the result source.
398+
364399
If parameter is not specified, the value is unchanged.
400+
365401
Used when authentication type (AuthenticationType) is set to a type that consumes user credentials (FederationAuthType.SingleAccountBasicAuth, FederationAuthType.SingleAccountDigest or FederationAuthType.SingleAccountNTLM).
366402

367403

0 commit comments

Comments
 (0)