Skip to content

Commit 0202e5e

Browse files
authored
Merge pull request MicrosoftDocs#859 from tseward/patch-493
Update Remove-SPEnterpriseSearchCrawlMapping.md
2 parents c4fb966 + 2dd9fb5 commit 0202e5e

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

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

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

3030
### ------------------EXAMPLE------------------
3131
```
32-
C:\PS>$searchapp = Get-SPEnterpriseSearchServiceApplication "Sample Search Service Application"
33-
$mappingtodelete = Get-SPEnterpriseSearchCrawlContentSource -Identity "somemapping"
34-
$mappingtodelete | Remove-SPEnterpriseSearchCrawlMapping
32+
PS C:\>$searchapp = Get-SPEnterpriseSearchServiceApplication "Sample Search Service Application"
33+
PS C:\>$mappingtodelete = Get-SPEnterpriseSearchCrawlContentSource -Identity "somemapping"
34+
PS C:\>mappingtodelete | Remove-SPEnterpriseSearchCrawlMapping
3535
```
3636

3737
This example removes a crawl mapping from a search application.
@@ -58,13 +58,9 @@ Accept wildcard characters: False
5858
```
5959
6060
### -AssignmentCollection
61-
Manages objects for the purpose of proper disposal.
62-
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.
63-
Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory.
64-
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.
61+
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.
6562
66-
When the Global parameter is used, all objects are contained in the global store.
67-
If objects are not immediately used, or disposed of by using the `Stop-SPAssignment` command, an out-of-memory scenario can occur.
63+
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.
6864
6965
```yaml
7066
Type: SPAssignmentCollection

0 commit comments

Comments
 (0)