Skip to content

Latest commit

 

History

History
80 lines (55 loc) · 3.26 KB

functional-package-search.md

File metadata and controls

80 lines (55 loc) · 3.26 KB
title titleSuffix description ms.subservice ms.custom ms.topic ms.author author monikerRange ms.date
Search packages
Azure Artifacts
How to search for packages across all your feeds and in upstream sources in an Azure DevOps organization.
azure-devops-search
cross-service, cross-project
how-to
chcomley
chcomley
azure-devops
09/28/2023

Search packages across your feeds

[!INCLUDE version-eq-azure-devops]

Finding the right package for your project can be challenging, especially when there are many versions and dependencies involved. In this article, learn how to use Code Search to perform functional package search in Azure DevOps, which allows you to search for packages based on their functionality, metadata, and code snippets.

Prerequisites

  • An Azure DevOps organization and a project. Create an organization or a project if you haven't already.

  • An Azure Artifacts feed. Create a feed, if you don't have one already.

Search packages

  1. Sign in to your project (https://dev.azure.com/{your_organization}/{your_project}).

  2. Enter "package" in the search box.

  3. Select from the dropdown menus to search by feeds, views, or package types.

    :::image type="content" source="media/shared/package-search-results-filters.png" alt-text="Screenshot showing the filter panel options.":::

You can search within all feeds of the organization by default, regardless of the project you’re in.

The Views filter shows up only when you select a single feed from the Feeds filter. This filter lets you display packages from a particular view.

You can use the Type filter to choose the package type you want to search for (for example, NuGet packages).

Search with the REST API

You can use the Azure DevOps REST API to search for packages in a specific organization. For more information, see Fetch package search results.

Example

POST https://almsearch.dev.azure.com/ORGANIZATION_NAME/_apis/search/packagesearchresults?api-version=7.0
{
  "$orderBy": null,
  "$top": 100,
  "$skip": 0,
  "searchText": "react-calendar",
  "filters": {
    "ProtocolType": "Npm"
  }
}

Search upstream sources

Using upstream sources, you can consume packages from public registries and other Azure Artifacts feeds. For more information, see Search upstream.

Note

You can only search for packages in upstream sources from your feed in Azure DevOps Services. NuGet Package Explorer doesn't support searching for upstream packages. For more information, see Download NuGet packages.

Next steps

[!div class="nextstepaction"] What are feeds? What are feed views? Promote a package to a view

Related articles