Sunspot Solr Gem & .gitignore

I am running the sunspot_solr & sunspot_rails gem in development and I get an insane number of changes to index files and data files every time I start and stop the development and/or sunspot server. It’s driving me crazy doing version control.

gem “sunspot_solr”, “~> 2.1.0”
gem “sunspot_rails”, “~> 2.1.0”

  • Atlassian SourceTree does not show remote branches?
  • git: Split history of some files into a separate branch
  • How to sort git tags by version string order of form rc-X.Y.Z.W?
  • How to delete a git remote tag?
  • Why am I getting this error: “remote end hung up unexpectedly”?
  • How is it possible to use raw_input() in a Python Git hook?
  • Which of these files/directories can be safely ignored? These are the culprits:

    solr/development/data/index/_dh.fdt

    solr/pids/development/sunspot-solr-development.pid

    solr/development/data/tlog/tlog.0000000000000000176

    solr/development/data/index/write.lock

    Thanks!

  • Git commit that doesn't override original authors in git blame
  • Show all stashes in git log
  • Gitlab does not load assets
  • Unable to find stash/apply functionalitit in EGit
  • There isn't anything to compare. Nothing to compare, branches are entirely different commit histories
  • How do I convert simple non source controlled project backups into a versioned git repository?
  • 3 Solutions collect form web for “Sunspot Solr Gem & .gitignore”

    I have this in my .gitignore and my teammates had no problem after checking it out…

    solr/data
    solr/test
    solr/development
    solr/default/data
    /log/*.log.lck
    solr/pids
    

    I think you should be safe to ignore anything in the solr/development/* directory. Worst case is you find you need something in there to be under version control and you can re-add it.

    I had to add the following (sunspot 2.1.0)

    solr/test
    solr/development
    solr/default/data
    /log/*.log.lck
    
    Git Baby is a git and github fan, let's start git clone.