Company
Date Published
Author
Tim Pease
Word count
299
Language
English
Hacker News points
None

Summary

GitHub has introduced significant enhancements to its code search functionality, unveiling a new search infrastructure powered by an ElasticSearch cluster that indexes code in real-time as it is pushed to the platform. This upgrade ensures that search results are relevant and include only public and private repositories accessible to the user, while excluding repository forks unless they surpass the parent repository in stars. The code search landing page has been redesigned to integrate a command bar when logged in, and an advanced search feature now allows users to filter results by criteria such as stars, forks, or file extensions. Repository results now showcase activity levels, including private repositories, and code search results include new features such as line numbers, syntax highlighting, and various search filters. Additionally, the user results page has been streamlined to provide accurate results and the option to follow users directly from the search results.