Google Code Search

Beta product from Google


title: "Google Code Search" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["code-search-engines", "defunct-internet-search-engines", "discontinued-google-services"] description: "Beta product from Google" topic_path: "general/code-search-engines" source: "https://en.wikipedia.org/wiki/Google_Code_Search" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0

::summary Beta product from Google ::

::data[format=table title="Infobox website"]

FieldValue
nameGoogle Code Search
logoGoogle Code Search.png
logo_size250px
typeSearch engine
languageAll languages
ownerGoogle
launch_date
current_statusDiscontinued as of 15 January 2012
urlwww.google.com/codesearch
::

| name = Google Code Search | logo = Google Code Search.png | logo_size = 250px | screenshot = | caption = | commercial = | type = Search engine | language = All languages | registration = | owner = Google | launch_date = | current_status = Discontinued as of 15 January 2012 | revenue = | url = www.google.com/codesearch

Google Code Search was a free beta product from Google which debuted in Google Labs on October 5, 2006, allowing web users to search for open-source code on the Internet. Features included the ability to search using operators, namely , , , and .

The code available for searching was in various formats including tar.gz, .tar.bz2, .tar, and .zip, CVS, Subversion, git and Mercurial repositories.

Google Code Search covered many open-source projects, and as such is different from the "Code Search for Google Open source projects" that was released afterwards.

Regular expression engine

The site allowed the use of regular expressions in queries, which at that time was not offered by any other search engine for code. This makes it resemble grep, but over the world's public code. The methodology employed, sometimes called trigram search, combines a trigram index with a custom-built, denial-of-service resistant regular expression engine.

In March 2010, the code of RE2, the regular expression engine used in Google Code Search, was made open source.

Google Code Search supported POSIX extended regular expression syntax, excluding back-references, collating elements, and collation classes.

Languages not officially supported could be searched for using the file: operator to match the common file extensions for the language.

Discontinuation

In October 2011, Google announced that Code Search was to be shut down along with the Code Search API. The service remained online until March 2013, and it now returns a 404.

In January 2012, Google developer Russ Cox published an overview of history and the technical aspects of the tool, and open-sourced a basic implementation of a similar functionality as a set of standalone programs that can run fast indexed regular expression searches over local code.

References

References

  1. "Code Search for Google open source projects".
  2. "Google Open Source".
  3. Russ Cox. (January 2012). "Regular Expression Matching with a Trigram Index (or: How Google Code Search Worked)".
  4. "RE2: a principled approach to regular expression matching".
  5. Horowitz, Bradley. (2011-10-14). "Official Blog: A fall sweep". Googleblog.blogspot.com.
  6. "Replacement for Google Code Search?".
  7. {{github. google/codesearch

::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::

code-search-enginesdefunct-internet-search-enginesdiscontinued-google-services