does the 'code search' feature support github enterprise server? or just Github.com? #169801
Replies: 3 comments 1 reply
-
| I was looking into your question and thought I would share what I found after doing some digging. Hopefully this points you in the right direction. Understanding Code Search on GitHub Enterprise ServerFrom what I gathered, GitHub Enterprise Server (GHE) does support code search, but it works differently from GitHub.com depending on configuration. If you want to search across both your Enterprise Server and GitHub.com repositories, you can enable unified search through [GitHub Connect][2]. This lets authenticated users run a single query that returns results from both environments, provided permissions allow it. At a glance
 How to enable and use it
 Quick note on search syntaxGHE supports many of the same search qualifiers as GitHub.com, but some advanced search features available in GitHub code search (beta) may not be present in your GHE version unless it has been updated to include them. Always check your Enterprise Server documentation for supported syntax. Why it might help
 This is not based on firsthand use. It comes from GitHub documentation and community-sourced data. If you try enabling either local search or unified search, I would appreciate a follow-up to confirm if it meets your needs. That could help others with the same question. /[1]: https://docs.github.com/en/[email protected]/admin/administering-your-instance/administering-your-instance-from-the-web-ui/managing-search-indices-for-your-instance "Managing search indices for your instance" | 
Beta Was this translation helpful? Give feedback.
-
| Hey, good question. GitHub’s new Code Search is currently available on GitHub.com (cloud), but it’s not supported yet on GitHub Enterprise Server. For Enterprise Server, you still get the classic search features, but not the new index-backed search experience. As for the indexing — the Copilot repo index is a separate thing. That index is created so Copilot can give context-aware suggestions from your repo. The Code Search index is optimized for fast, large-scale code queries. They’re both “indexes,” but they’re used differently and aren’t the same system. If you’re on Enterprise Server and want Code Search, you’d need to wait for GitHub to announce support (or stick with cloud). | 
Beta Was this translation helpful? Give feedback.
-
| 🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as  2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the  Thank you for helping bring this Discussion to a resolution! 💬 | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Just want to make sure whether this feature is available in GitHub Enterprise server? and the index technology here is same with the 'remote index' for github repo in github copilot? thanks.
GitHub Code Search
github copilot index: https://docs.github.com/en/copilot/concepts/repository-indexes#about-index-creation-and-use
image
Beta Was this translation helpful? Give feedback.
All reactions