Skip to content

Commit b8264b7

Browse files
authored
Merge pull request MicrosoftDocs#862 from tseward/patch-496
Update Remove-SPEnterpriseSearchLanguageResourcePhrase.md
2 parents bcc4334 + 10361ff commit b8264b7

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

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

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

3131
### ------------------EXAMPLE------------------
3232
```
33-
C:\PS>$searchapp = Get-SPEnterpriseSearchServiceApplication "SearchApp1"
34-
$obsoletephrase = Get-SPEnterpriseSearchLanguageResourcePhrase -SearchApplication $searchapp -Language en-us -Type QuerySuggestionBlockList -Identity secret
35-
$obsoletephrase | Remove-SPEnterpriseSearchLanguageResourcePhrase -SearchApplication $searchapp -Type QuerySuggestionBlockList -Language en-us
33+
PS C:\>$searchapp = Get-SPEnterpriseSearchServiceApplication "SearchApp1"
34+
PS C:\>$obsoletephrase = Get-SPEnterpriseSearchLanguageResourcePhrase -SearchApplication $searchapp -Language en-us -Type QuerySuggestionBlockList -Identity secret
35+
PS C:\>$obsoletephrase | Remove-SPEnterpriseSearchLanguageResourcePhrase -SearchApplication $searchapp -Type QuerySuggestionBlockList -Language en-us
3636
```
3737

3838
This example removes a language resource item on the QuerySuggestionBlockList for the en-us language.
@@ -41,13 +41,9 @@ This example removes a language resource item on the QuerySuggestionBlockList fo
4141
## PARAMETERS
4242

4343
### -AssignmentCollection
44-
Manages objects for the purpose of proper disposal.
45-
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.
46-
Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory.
47-
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.
44+
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.
4845

49-
When the Global parameter is used, all objects are contained in the global store.
50-
If objects are not immediately used, or disposed of by using the `Stop-SPAssignment` command, an out-of-memory scenario can occur.
46+
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.
5147

5248

5349
```yaml
@@ -145,8 +141,11 @@ Specifies the search object owner that defines the scope at which the correspond
145141
The owner must be one of the following valid levels:
146142

147143
- Search Service Application
144+
148145
- Site Subscription
146+
149147
- Site Collection
148+
150149
- Site
151150

152151

@@ -205,8 +204,11 @@ Constrains to delete phrases of specified type.
205204
The type must be one of the following valid types of phrases:
206205

207206
- QuerySuggestionBlockList
207+
208208
- QuerySuggestionAlwaysSuggest
209+
209210
- Nickname
211+
210212
- QuerySuggestionSubstitution
211213

212214

0 commit comments

Comments
 (0)