# Tried htdig to no avail ... R&D'ed others ... http://grupoweb.upf.es/WRG/mir2ed/pdf/slides_appendixA.pdf recommends Indri ...
cd /Applications/MAMP/htdocs
mkdir dbdir
sudo tar -vzxf $HOME/Downloads/indri-5.6.tar.gz
mkdir indri-5.6
# Unzip the download from http://sourceforge.net/p/lemur/code/HEAD/tree/indri/trunk/
cp $HOME/Downloads/lemur-code-2632-indri-trunk indri-5.6
cd indri-5.6
sudo ./configure --enable-java --with-javahome=/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home --with-swig=/Applications/MAMP/htdocs/indri-5.6/swig
make
make install
cd ..
sudo indri-5.6/harvestlinks/harvestlinks -corpus=/Applications/MAMP/htdocs -output=/Applications/MAMP/htdocs/dbdir -harvest=1
sudo indri-5.6/buildindex/IndriBuildIndex -memory=500m -index=`pwd`/dbdir -corpus.path=`pwd` -corpus.class=html -metadata.field=docno -metadata.field=title -metadata.field=h1 -metadata.field=h2 -metadata.field=h3 -field.name=docno -field.name="title" -field.name=h1 -field.name=h2 -field.name=h3 -stemmer.name=krovetz -stopper.word=a -stopper.word=an -stopper.word=the -stopper.word=as
./indri-5.6/runquery/IndriRunQuery queries.xml



Links:

Download (finally successful)
http://sourceforge.net/p/lemur/code/HEAD/tree/indri/trunk/

Install advice
https://mu.lti.cs.cmu.edu/trac/Ephyra/wiki/Docs/Tutorials/UsingIndri

Indri usage advice
http://ils.unc.edu/courses/2013_spring/inls890_190/indri_experimentation.pdf
http://myweb.uiowa.edu/cgharris/images/indri.pdf
http://www.cs.cmu.edu/~lemur/3.1/IndriQueryLanguage.html
http://sourceforge.net/p/lemur/wiki/IndriBuildIndex%20Parameters/
http://lemur.sourceforge.net/indri/IndriRunQuery.html

Best Indri usage advice
http://www.lemurproject.org/phorum/read.php?11,870

Java API example advice
http://sourceforge.net/p/lemur/discussion/2106523/thread/fe2cae97/