Set up a full text code search engine for rubygems mirror
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
test
.gitignore
LICENSE
README.md
Rakefile
gem-codesearch.gemspec

README.md

gem-codesearch

gem-codesearch sets up a full text code search engine on mirror of rubygems. It use rubygems-mirror to mirror rubygems and codesearch for search engine.

400GB of free disk space is required to store the rubygems mirror, unpacked gems and codesearch index at 2016-01. It will be larger in future.

Usage

This creates "latest-gem" package in codesearch index.

% sudo aptitude install codesearch  # https://github.com/google/codesearch
% gem install gem-codesearch
% mkdir $HOME/gem-codesearch        # Make a some directory
% cd $HOME/gem-codesearch
% gem-codesearch-setup all >& setup.log # It may take several days or more

If "gem-codesearch-setup all" fails due to network or server errors, try again to continue.

After the index is created, enjoy code search.

% csearch sort_by

Usage without install

% sudo aptitude install codesearch  # https://github.com/google/codesearch
% gem install rubygems-mirror
% cd $HOME
% git clone https://github.com/akr/gem-codesearch.git
% cd gem-codesearch
% rake all >& setup.log             # It may take several days or more

Use milkode instead of codesesarch

% gem install milkode
% milk init --default               # If you use milkode first time
% rake mirror unpack index_milkode >& setup.log

Links

Author

Tanaka Akira akr@fsij.org