Share via

Export summary of search results for indexing in another program

Sylvia Tennant 40 Reputation points
2026-02-12T19:08:17.76+00:00

Hi, I've made a search query that finds a bit of code in a certain file extension across our company's entire repo that returns several hundred results. I was wondering if there already exists a straight forward way to export the names of which projects are returned in my search. Thanks.

Azure DevOps
0 comments No comments

Answer accepted by question author

Pravallika KV 16,365 Reputation points Microsoft External Staff Moderator
2026-02-13T10:13:42.8866667+00:00

Hey @Sylvia Tennant ,

Thanks for reaching out to Microsoft Q&A.

Unfortunately, the current Azure Search features don't directly support exporting search results in a straightforward manner as a list. However, you can follow these steps to record the results:

  1. Manual Copying: Once you have the search results displayed, you might consider manually copying the project names from the results.
  2. Automating the Process: If you frequently need this data, you could write a script that calls the Azure Search API to execute your query and gathers the results programmatically.

Here's a basic example of how you could do this with the Search Documents REST API:

  • Make a POST request to the Search Documents REST API with your query.
  • The API will return a JSON object containing your search results, including the names of the projects.
  • You can then parse this JSON response to extract and export the project names.

External Tools: If you are comfortable using external tools, consider leveraging Azure Functions or other automation tools to run this query regularly and export the results to a file or database.

Hope this helps!

Was this answer helpful?

1 person found this answer helpful.

Answer accepted by question author

Vinodh247-1375 42,776 Reputation points Volunteer Moderator
2026-02-13T00:43:25.8033333+00:00

Hi ,

Thanks for reaching out to Microsoft Q&A.

In azure DevOps there is no built-in one-click option to export project names directly from code search results. The practical approach is to use the Code Search REST API via the azure DevOps REST API to run the same query and programmatically extract project names from the JSON response. You can then export that output to CSV or any format required for indexing in your other program. For a quick manual workaround, you can copy results from the UI, but for several hundred entries, the API route is the clean and scalable solution. 

Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.