Convert git commit history to solr index
Java
Latest commit 279e0af Nov 2, 2013 gsieling Add missing config file
Failed to load latest commit information.
conf Fix log4j settings, and helloworld of quartz Oct 29, 2013
.gitignore Add Ivy configuration to download dependencies for project on demand Jul 30, 2013
.travis.yml Add Ivy configuration to download dependencies for project on demand Jul 31, 2013
Main.java Add more facet options Oct 27, 2013
README.md Update README.md Nov 2, 2013
Workflow.java Fix log4j settings, and helloworld of quartz Oct 29, 2013
WorkflowJob.java Fix log4j settings, and helloworld of quartz Oct 29, 2013
authors.txt
build.xml Fix errors with Quartz demo Oct 29, 2013
ivy.xml Fix errors with Quartz demo Oct 29, 2013
logging-schema.xml adding xml config files Jun 17, 2012
schema.xml Minor indexing performance improvement - halve size of index Oct 26, 2013

README.md

solr-git Build status

About

Convert git commit history to solr index

See http://garysieling.com/blog/converting-git-commit-history-to-a-solr-full-text-index for more information

Talk: https://rawgithub.com/garysieling/git-solr-talk/master/index.html

Setup

Setup pre-requisites:

apt-get install openjdk-7-jdk git-core tomcat7 unzip

Solr setup:

cd ~
wget http://apache.mesi.com.ar/lucene/solr/4.5.1/solr-4.5.1.zip
unzip solr-4.5.1.zip

Get application source code:

git clone https://github.com/garysieling/solr-git.git

Copy schema.xml and authors.txt into the Solr distribution:

cp solr-git/schema.xml solr-4.5.1/example/solr/collection1/conf/
cp solr-git/authors.txt solr-4.5.1/example/solr/collection1/conf/

Start Solr:

cd /solr-4.5.1/example
java -jar start.jar

Modify the URL to point to your local Solr server, if needed (i.e. if you changed the default port or ran it on a different machine).

Edit the location of the local git files you want indexed.

This can be run from Eclipse, but you need to add jars from the Solr installation.