PowerShell/PowerShellGallery

PSGallery search returning limited results

Opened this issue · 3 comments

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

PSGallery search returning limited results

Expected behavior

All results

Actual behavior

Limited results

Error details

No response

Environment data

n/a

Version

n/a

Visuals

image
image

I've noticed this issue today as well, getting inconsistent results/counts returned, running from multiple computers (work and home):

Running command: $Mods = Find-Module -Verbose

Work PC #1 - PSH 5

  • Initial
    VERBOSE: Total package yield:'10789' for the specified package ''.

  • 10 Minutes later
    VERBOSE: Total package yield:'640' for the specified package ''.

Work PC #2 - PSH 5

  • Initial
    VERBOSE: Total package yield:'10789' for the specified package ''.

  • 25 Minutes later
    VERBOSE: Total package yield:'160' for the specified package ''.

Home PC 1 - PSH v5

  • Initial
    VERBOSE: Total package yield:'120' for the specified package ''.

  • 5 Minutes later
    VERBOSE: Total package yield:'12' for the specified package ''.

  • 20 Minutes later
    VERBOSE: Total package yield:'3' for the specified package 'A*'.

  • 30 Minutes later
    VERBOSE: Total package yield:'3400' for the specified package ''.

Home PC 1 - PSH v7.5.3

  • Initial
    VERBOSE: Total package yield:'160' for the specified package ''.

  • 20 Minutes later
    VERBOSE: Total package yield:'3387' for the specified package ''.

Home PC #2 - PSH v5

  • Initial
    VERBOSE: Total package yield:'3387' for the specified package ''.

  • 10 Minutes later
    VERBOSE: Total package yield:'10789' for the specified package ''.

Using Find-PSResource on home PC #1:

PS> $RSC = Find-PSResource -Type Module -Repository PSGallery -Verbose; $RSC.Count
3120

  • PSH v7.4.5 (Seems to get proper count more often - similar results on Work PC #1 as well)
    PS> $RSC = Find-PSResource -Type Module -Repository PSGallery -Verbose; $RSC.Count
    10789

PS> $RSC = Find-PSResource -Type Module -Repository PSGallery -Verbose; $RSC.Count
Find-PSResource: Package does not exist on the server
6000

PS> $RSC = Find-PSResource -Type Module -Repository PSGallery -Verbose; $RSC.Count
10789

PS> $RSC = Find-PSResource -Type Module -Repository PSGallery -Verbose; $RSC.Count
3305

  • NOTE: Though using Find-Module in same session yields the inconsistent results each time:
    VERBOSE: Total package yield:'3440' for the specified package ''.

+1
Web Gallery Showing 1 or 0 results, even for literally an empty search
image

@ThomasNieto @BouwenMA @KSchu26 thanks for this information! This is an ongoing intermittent issue we're aware of and investigating...one thing to note is that doing a wildcard search with cmdlets (like Find-Module (v2), Find-PSResource -Type Module, Find-PSResource -Name "A*", etc) will hit this issue but if you know of the package name and search it specifically that will not run into this issue. We'd recommend using Find-PSResource from Microsoft.PowerShell.PSResourceGet module. For searching on the website, you can use the https://www.powershellgallery.com/packages/<MyPackage> url and that will also work