Skip to content
Convert git commit history to solr index http://www.garysieling.com
Java
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
conf
.gitignore
.travis.yml
Main.java
README.md
Workflow.java
WorkflowJob.java
authors.txt
build.xml
ivy.xml
logging-schema.xml
schema.xml

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.

Something went wrong with that request. Please try again.