Jump to content

Google Code Search

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 73.71.72.205 (talk) at 02:16, 21 September 2019 (See also: WP:ALSO not for red links or external links. working wikilinks only). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Google Code Search
Type of site
Search engine
Available inAll languages
OwnerGoogle
URLwww.google.com/codesearch
LaunchedOctober 5, 2006; 18 years ago (2006-10-05)
Current statusDiscontinued as of 15 January 2012

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 lang:, package:, license: and file:.

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

Regular expression engine

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

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

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.[3] The service remained online until March 2013,[4] and it now returns a 404.

In January 2012, 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.[5]

See also

References

  1. ^ Russ Cox (January 2012). "Regular Expression Matching with a Trigram Index (or: How Google Code Search Worked)".
  2. ^ "RE2: a principled approach to regular expression matching".
  3. ^ Horowitz, Bradley (2011-10-14). "Official Blog: A fall sweep". Googleblog.blogspot.com. Retrieved 2013-07-09.
  4. ^ "Replacement for Google Code Search?". Stack Overflow.
  5. ^ codesearch on GitHub