With a v3 feed, using nuget.exe search
with any query terms always returns no hits (at least from all my testing), even when there should be hits. For example, the following returns no hits even when the feed contains a package with id someid
:
nuget search id:someid -prerelease
Inspecting with Fiddler, this translates to a request like:
GET http://xxx/nuget/test/v3/search?q=ID:someid&skip=0&take=20&prerelease=true&semVerLevel=2.0.0 HTTP/1.1
to which proget responds:
{
"totalHits": 0,
"data": []
}
An equivalent query directed at nuget.org
works as expected. The relevant nuget server API is documented here and here.
I've tried a variety of query terms, and it seems that if any query terms are present, the search will find no hits.
This does kind of work with the v2 API, if the feed is configured to allow v2, but it is very slow even with search terms that should translate to a no-brainer indexed db query, for example packageid:Newtonsoft.JSON version:11.0.2
. I recently updated to ProGet 5.3.34 (from 5.1.x) in the hope that this would be properly sorted out with the v3 API, but instead it appears to be completely non-functional.