Skip to content

Commit 5c7d7e8

Browse files
doctordnssdwheeler
authored andcommitted
Update search-syntax.md (MicrosoftDocs#3364)
Tidied up this page based on the UPdated Web Site, including: Ensured all the search items 'work'! Removed unclear searches - it was not clear where there were two lines just what that meant. Remove quotes from search terms where they are not needed, but showed the use as an alternative.
1 parent d87bae1 commit 5c7d7e8

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

gallery/how-to/finding-packages/search-syntax.md

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ title: Gallery Search Syntax
66
---
77
# Gallery Search Syntax
88

9-
PowerShell Gallery offers a text searchbox where you can use words, phrases and keyword expressions to narrow down search results.
9+
You can search the PowerShell Gallery using the [PowerShell Gallery's web site](https://www.powershellgallery.com/).
10+
PowerShell Gallery web site offers a text searchbox where you can use words, phrases and keyword expressions to narrow down search results.
1011

1112
## Search by Keywords
1213

1314
dsc azure sql
1415

15-
Search will do its best effort to find relevant documents containing all 3 keywords, and return matching documents.
16+
Search attempts to find relevant documents containing all 3 keywords, and return matching documents.
1617

1718
## Search using Phrases and keywords
1819

@@ -32,10 +33,9 @@ Currently the searchable fields are 'Id', 'Version', 'Tags', 'Author', 'Owner',
3233

3334
## Examples
3435

35-
ID:"PSReadline"
36-
id:"AzureRM.Profile"
37-
38-
finds packages with "PSReadline" or "AzureRM.Profile" in their ID field respectively.
36+
ID:PSReadline
37+
38+
finds packages with an ID containing "PSReadline".
3939

4040
Id:"AzureRM.Profile"
4141

@@ -45,40 +45,35 @@ The 'Id' filter is a substring match, so if you search for the following:
4545

4646
Id:"azure"
4747

48-
You'll get results like 'AzureRM.Profile' and 'Azure.Storage'.
48+
This provides results that include AzureRM.Profile' and 'Azure.Storage'.
4949

50-
You can also search for multiple keywords in a single field. Or mix and match fields.
50+
You can also search for multiple keywords in a single field.
5151

5252
id:azure tags:intellisense
53-
id:azure id:storage
5453

55-
And you can perform phrase searches:
54+
And you can perform phrase searches using double quotes:
5655

5756
id:"azure.storage"
5857

59-
6058
To search all packages with DSC tag.
6159

62-
Tags:"DSC"
60+
Tags:DSC
6361

6462
To search all packages with the specified function.
6563

66-
Functions:"Update-AzureRM"
64+
Functions:Get-TreeSize
6765

6866
To search all packages with the specified cmdlet.
6967

70-
Cmdlets:"Get-AzureRmEnvironment"
68+
Cmdlets:Get-AzureRmEnvironment
7169

7270
To search all packages with the specified DSC Resource name.
7371

74-
DscResources:"xArchive"
72+
DscResources:xArchive
7573

7674
To search all packages with the specified PowerShellVersion
7775

78-
PowerShellVersion:"5.0"
79-
PowerShellVersion:"3.0"
80-
PowerShellVersion:"2.0"
81-
76+
PowerShellVersion:2.0
8277

8378
Finally, if you use a field we don't support, such as 'commands', we'll just ignore it and search all the fields. So the following query
8479

0 commit comments

Comments
 (0)