Giter Site home page Giter Site logo

git-to-solr's Introduction

git-to-solr

Index git history into a Solr repository. Represents commit's content (file changed, etc) as nested documents. Tested against Solr 4.9 .

Inspired by Gary Sieling's solr-git and JGit-Cookbook.

Start Solr server by running java -Dsolr.solr.home=<project-root>/solr -jar start.jar from Solr distribution's example directory.

bin/solr create_core -c git -d ~/Projects/git-to-solr/solr/collection1/

To build the jar, you need to use Apache Maven and run mvn clean compile assembly:single at the top of the directory (where pom.xml is)

Query examples: http://localhost:8983/solr/git/select?q={!parent+which%3D%22type%3Acommit%22}diffType%3AADD&wt=json&indent=true&fl=*,[child%20parentFilter=type:commit] (decoded) http://localhost:8983/solr/git/select?q={!parent which="type:commit"}diffType:ADD&wt=json&indent=true&fl=*,[child parentFilter=type:commit]

Show commit (parents) that have ADD operations in them, include all nested children (whether they are ADD or MODIFY or whatever).

?Possible

  • Average number of different operations (ADD/MODIFY) per commit

git-to-solr's People

Contributors

arafalov avatar robgthai avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.