Skip to content

Commit a626641

Browse files
authored
Merge pull request MicrosoftDocs#626 from tseward/patch-313
Update Set-SPEnterpriseSearchTopology.md
2 parents 245163b + ceed089 commit a626641

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@ For permissions and the most current information about Windows PowerShell for Sh
2929

3030
### ------------------EXAMPLE 1------------------
3131
```
32-
C:\PS>$ssa = Get-SPEnterpriseSearchServiceApplication
33-
$topology = Get-SPEnterpriseSearchTopology -SearchApplication $ssa -Identity 10fa59cb-4b32-4fe6-8f8d-065388df201e
34-
Set-SPEnterpriseSearchTopology -Identity $topology
32+
PS C:\>$ssa = Get-SPEnterpriseSearchServiceApplication
33+
PS C:\>$topology = Get-SPEnterpriseSearchTopology -SearchApplication $ssa -Identity 10fa59cb-4b32-4fe6-8f8d-065388df201e
34+
PS C:\>Set-SPEnterpriseSearchTopology -Identity $topology -SearchApplication $ssa
3535
```
3636

3737
This example enables a search topology with the Identity 10fa59cb-4b32-4fe6-8f8d-065388df201e.
3838

3939

4040
### ------------------EXAMPLE 2------------------
4141
```
42-
C:\PS>$ssa = Get-SPEnterpriseSearchServiceApplication
43-
Set-SPEnterpriseSearchTopology -Identity $topo -SearchApplication $ssa
42+
PS C:\>$ssa = Get-SPEnterpriseSearchServiceApplication
43+
PS C:\>$topology = Get-SPEnterpriseSearchTopology -SearchApplication $ssa | ?{$_.State -eq 'Inactive'}
44+
PS C:\>Set-SPEnterpriseSearchTopology -Identity $topology -SearchApplication $ssa
4445
```
4546

46-
This example enables the search topology referenced by $topo in the search service application referenced by $ssa.
47-
47+
This example retreives an inactive topology and sets it to the active topology.
4848

4949
## PARAMETERS
5050

0 commit comments

Comments
 (0)