Solr is an open source enterprise search server based on the Lucene
Java search library, with XML/HTTP and JSON APIs, hit highlighting,
faceted search, caching, replication, a web administration interface
and many more features. It runs in a Java servlet container such as
Tomcat.
===> The following configuration options are available for apache-solr8-8.11.4,1:
JTS=off: Enable support for JTS Topology Suite
===> Use 'make config' to modify these settings
Make sure to edit the following files to adapt to your setup:
/usr/local/etc/solr.in.sh
/var/db/solr/solr.xml
All files are configured to have your solr instances running in
/var/db/solr/<instancename>
For more information how to configure solr check the manual:
http://lucene.apache.org/solr/resources.html#documentation
The port is configured to listen only on localhost, port 8983.
To have a working initial config, use:
cp -R /usr/local/solr/example/example-DIH/solr/solr /var/db/solr/
chown -R solr /var/db/solr/solr
To rotate solr log files include /var/log/solr/ to your log rotation
configuration.
To enable the port execute:
sysrc solr_enable="YES"
And start it with:
service solr start
If upgrading
If you update, make sure you update your /usr/local/etc/solr.in.sh
The LOG4J_PROPS has changed.
If you would like to change logging, copy:
cp /usr/local/solr/server/resources/log4j2.xml /var/db/solr/
Change it and make sure it is loaded in /usr/local/etc/solr.in.sh.
Make also sure to always check the manual if you need to modify your
configs or schemas:
https://solr.apache.org/guide/8_9/solr-upgrade-notes.html
port moved to textproc/apache-solr on 2024-12-24 REASON: Has expired: Deprecated upstream 2024-10-25, upgrade to version 9 in textproc/apache-solr instead
textproc/apache-solr8: Remove expired port
2024-12-24 textproc/apache-solr8: Deprecated upstream 2024-10-25, upgrade to
version 9 in textproc/apache-solr instead