Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (33 sloc) 1.01 KB


Just a proof of concept small library to index a git repo in elastic search

  • uses grit and tire

as per default Grit behaviour it gets the current master

Could be useful with gitlabhq


bundle install

You should have a local elastic search running.


# Inits with a full path to a local git repository
repo_index ="/Users/git/repositories/gitlabhq.git")  
# Inits elastic search index       
# Indexes the repo                 

To search the code: repo_index.index_name do
   query do
     string 'mysearchterm'

You can look at example.rb

##Todo Well basically everything, but let's start with writing some tests and then different branches, adding the commit messages, make elastic search configurable and other fun stuff

##Licence BSD Copyright Ori Pekelman, AF83 2011