I have recently installed a local NuGet Gallery from the instructions on GitHub.
It appears to be working correctly when I upload packages through the UI, but packages pushed using the command line don't show up in search results. In the packages windows it says "Search Index last updated 55 minutes ago". This corresponds to when I last published the website. What determines when the search index runs? A quick look at the code makes it look like it should happen whenever you add/remove a package, but it doesn't appear to be doing this.
How can I increase the indexing frequency?
In the NuGetGallery project, go to the
CreatePackageInternal
method in/Controllers/ApiController
and call this line before thereturn
statement.Your code must be something like this