Skip to content

Commit 41c47da

Browse files
authored
Merge pull request MicrosoftDocs#855 from tseward/patch-489
Update Remove-SPEnterpriseSearchCrawlContentSource.md
2 parents c81be45 + edff3b0 commit 41c47da

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

sharepoint/sharepoint-ps/sharepoint-server/Remove-SPEnterpriseSearchCrawlContentSource.md

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

3030
### ------------------EXAMPLE------------------
3131
```
32-
C:\PS>$searchapp = Get-SPEnterpriseSearchServiceApplication "SearchApp1"
33-
$topo = Get-SPEnterpriseSearchCrawlTopology -SearchApplication $searchapp
34-
New-SPEnterpriseSearchCrawlTopology -SearchApplication $searchapp -clone -CrawlTopology $topo
35-
$newtopo = Get-SPEnterpriseSearchCrawlTopology -SearchApplication $searchapp -Identity 11111111-1111-1111-1111-111111111111
36-
$cc = Get-SPEnterpriseSearchCrawlComponent -CrawlTopology $newtopo -Identity 22222222-2222-2222-2222-222222222222
37-
$cc | Remove-SPEnterpriseSearchCrawlComponent
38-
$newtopo | Set-SPEnterpriseSearchCrawlTopology -Active
32+
PS C:\>$searchapp = Get-SPEnterpriseSearchServiceApplication "SearchApp1"
33+
PS C:\>$topo = Get-SPEnterpriseSearchCrawlTopology -SearchApplication $searchapp
34+
PS C:\>New-SPEnterpriseSearchCrawlTopology -SearchApplication $searchapp -clone -CrawlTopology $topo
35+
PS C:\>$newtopo = Get-SPEnterpriseSearchCrawlTopology -SearchApplication $searchapp -Identity 11111111-1111-1111-1111-111111111111
36+
PS C:\>$cc = Get-SPEnterpriseSearchCrawlComponent -CrawlTopology $newtopo -Identity 22222222-2222-2222-2222-222222222222
37+
PS C:\>$cc | Remove-SPEnterpriseSearchCrawlComponent
38+
PS C:\>$newtopo | Set-SPEnterpriseSearchCrawlTopology -Active
3939
```
4040

4141
This example creates a new, inactive, crawl topology, removes a crawl component from it and activates the new crawl topology.
@@ -62,13 +62,9 @@ Accept wildcard characters: False
6262
```
6363
6464
### -AssignmentCollection
65-
Manages objects for the purpose of proper disposal.
66-
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.
67-
Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory.
68-
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.
65+
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.
6966
70-
When the Global parameter is used, all objects are contained in the global store.
71-
If objects are not immediately used, or disposed of by using the `Stop-SPAssignment` command, an out-of-memory scenario can occur.
67+
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.
7268
7369
```yaml
7470
Type: SPAssignmentCollection

0 commit comments

Comments
 (0)