Navigation

    Inedo Community Forums

    Forums

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. tomg_5321
    T
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    tomg_5321

    @tomg_5321

    0
    Reputation
    3
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    tomg_5321 Follow

    Best posts made by tomg_5321

    This user hasn't posted anything yet.

    Latest posts made by tomg_5321

    • RE: Nuget v3 SearchQueryService does not support query terms

      Hi @atripp,

      Yes, nuget search mycompany ... does return results.

      However, my actual underlying requirement is to test if a certain version (which may not be the most recent) of a certain package (by exact id) exists on the server, in an efficient way, for use over relatively low-performance network links (ie, not over local LAN). So ideally this should be a server-side query. As it stands. I can run this kind of search against nuget.org, but not ProGet.

      Thanks,

      Tom

      posted in Support
      T
      tomg_5321
    • RE: Nuget v3 SearchQueryService does not support query terms

      Hi Alana,

      I just do:

      nuget search ID:mycompany -source http://xxx/nuget/internal/v3/index.json -prerelease
      

      (where 'mycompany' is replaced with a string that occurs in the ID of many of our internal packages). And I just get zero hits, with the traced HTTP request and response as shown in my original post. There's nothing in the ProGet server logs. Unless I'm missing something obvious, if it works for you, then it seems that this must be down to some platform, configuration or environment difference on the ProGet side. Is there some more ProGet diagnostics I can turn on? Could it be related to the type or configuration of the backing database?

      Thanks,

      Tom

      UPDATE: I tried setting Diagnostics.MinimumLogLevel to zero, and indeed I can see more log events in the UI, but none that appear connected to when I issue a search request.

      posted in Support
      T
      tomg_5321
    • Nuget v3 SearchQueryService does not support query terms

      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.

      posted in Support
      T
      tomg_5321