Skip to content

Instantly share code, notes, and snippets.

@thelabdude
thelabdude / solr_alluxio.md
Last active September 21, 2017 15:09
Notes for running Solr on Alluxio

Here are some tips on getting started with using Alluxio as the filesystem for Solr indexes. I've tested with Alluxio 1.5.0 and Solr 6.6.0, but these instructions should work for other versions.

SOLR_TIP=<root directory where Solr is installed on your server>
ALLUXIO_HOME=<root directory where Alluxio is installed on your server>

Create an alluxio config directory to load into Solr's ZK with the following settings in solrconfig.xml:

   <directoryFactory name="DirectoryFactory"
@hammady
hammady / solr.service
Created January 9, 2017 08:18
systemd service file for Apache SOLR
# put this file in /etc/systemd/system/ as root
# below paths assume solr installed in /opt/solr, SOLR_PID_DIR is /data
# and that all configuration exists in /etc/default/solr.in.sh which is the case if previously installed as an init.d service
# change port in pid file if differs
# note that it is configured to auto restart solr if it fails (Restart=on-faliure) and that's the motivation indeed :)
# to switch from systemv (init.d) to systemd, do the following after creating this file:
# sudo systemctl daemon-reload
# sudo service solr stop # if already running
# sudo systemctl enable solr
# systemctl start solr
@markrmiller
markrmiller / beast.sh
Last active June 14, 2020 19:02
The best Lucene / Solr beasting script in the world. TM.
#!/usr/bin/env bash
#set -x #echo on
#echo "args:$@"
# The best Lucene / Solr beasting script in the world. TM. 4.3.0
#
# This script will fire off N independent test runs for a class, X of them in parallel.
#
# A results.log file is written to the {results-dir}. A non zero exit status indicates a failed run.
@softwaredoug
softwaredoug / localparams.md
Last active September 6, 2017 15:24
Solr Local Params -- Secret Manual

Infinite Recursion Errors

What's wrong with this?

q=cats&bq={!edismax qf=title v=$q}

Well it turns out that the local params carries the external params with it. So the bq will get applied to itself, resulting in "Infinite Recursion Errors".

@ralph-tice
ralph-tice / README.md
Last active January 26, 2016 21:36
SolrCloud backups

A little background on my context:

We run multiple Solr JVMs per box, which live in directories like:

/mnt/solr_8983
/mnt/solr_8984
/mnt/solr_8985
...
/mnt/solr_${PORT}
@jprante
jprante / es-1.2-settings.md
Last active March 20, 2020 02:42
Elasticsearch 1.2 settings and description