Skip to content

Instantly share code, notes, and snippets.

@eojthebrave
Created November 8, 2013 11:28
Show Gist options
  • Save eojthebrave/7369717 to your computer and use it in GitHub Desktop.
Save eojthebrave/7369717 to your computer and use it in GitHub Desktop.
Setup Apache Solr to work with Drupal 7.x on a Mac using homebrew.
# I did this from the root directory of our git repo. But you can probably
# do it from anywhere.
brew install solr
mkdir solr-config
cp -r /usr/local/Cellar/solr/4.5.0/libexec/example/ solr-config/
cp docroot/sites/all/modules/contrib/apachesolr/solr-conf/solr-4.x/* solr-config/solr/collection1/conf/
cd solr-conf
java -jar start.jar
# Reindex everything.
drush solr-mark-all
drush solr-index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment