Skip to content

Instantly share code, notes, and snippets.

@mlconnor
Created August 1, 2012 19:29
Show Gist options
  • Save mlconnor/3229955 to your computer and use it in GitHub Desktop.
Save mlconnor/3229955 to your computer and use it in GitHub Desktop.
Prepare Solr 3.6.1 for Nutch 1.5
# this site has a good install writeup with custom weighting handler
# https://sites.google.com/site/profileswapnilkulkarni/tech-talk/howtoinstallnutchandsolronubuntu1004
# grab the solr src
curl -o solr-3.6.1.tgz http://apache.ziply.com/lucene/solr/3.6.1/apache-solr-3.6.1-src.tgz
# untar the beast
tar xfvz solr-3.6.1.tgz
cd apache-solr*
# to skip the tests, just run ant compile
ant
# let's build the example
cd solr
ant example
cd example/solr/conf
# ok, now let's copy the nutch schema file over
mv schema.xml schema.orig
cp $NUTCH_HOME/runtime/local/conf/schema.xml .
cd ../..
# let's run it
java -jar start.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment