For this library to work properly, you need to set SOLR_HOME
var pointing to solr home folder you just installed.
For MAC users:
You can put the following in your ~/.bash_profile file
source ./.profile
Then, put the following in your ~/.profile file
#Solr
export SOLR_HOME="$HOME/solr-8.0.0" # put right version here
export SOLR_ULIMIT_CHECKS=false
For Emacs users:
setenv SOLR_HOME /my/path/to/solr/home
to your /etc/launchd.conf fileinit.el
:(setenv "SOLR_HOME" "/my/path/to/solr/home")
(setenv "SOLR_ULIMIT_CHECKS" "false")
You can either:
go to the https://github.com/Stylitics/corona-demo repo and copy resources/solr/tmdb
changing tmdb
for the name of you core (or index)
look at examples inside your solr home dir.
NOTE: If you start from existing example, make sure, in your $CLJ_PROJECT_HOME/resources/solr/<core-name>/conf/solrconfig.xml
file contains right maching lucene version
<luceneMatchVersion>8.0.0</luceneMatchVersion>
$ $SOLR_HOME/bin/solr start -p 8983
$ $SOLR_HOME/bin/solr stop -p 8983
For development, you can start solr from Clojure repl.
make sure you are seeing SOLR_HOME
variable. (System/getenv "SOLR_HOME")
then:
(require '[corona.cmd :as cmd])
(cmd/exec! :start) ;; $SOLR_HOME/bin/solr start
access Solr admin from your browser: http://localhost:8983/solr/
stop with: (cmd/exec! :stop)
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close