BSD Ports

textproc/apache-solr 9.8.0,1 DragonFly

High performance search server built using Lucene Java

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20
Categories
java, textproc
Package size
366209.1 KiB, 416170.0 KiB installed

Description

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.

In the other systems

SystemPortVersion
DragonFlytextproc/apache-solr9.8.0,1
FreeBSDtextproc/apache-solr10.0.0_1,1
NetBSDdatabases/apache-solr8.11.1
MidnightBSDtextproc/apache-solr9.8.0

Install

Binary package:

pkg install apache-solr

From DPorts:

cd /usr/dports/textproc/apache-solr && make install clean

Dependencies

Run dependencies 2

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

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 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 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.

Data Import Handler (DIH) has been removed from the base solr and is
available as independent module which can be installed with solr
package manager. The current repo is available at:
https://github.com/rohitbemax/dataimporthandler

Make also sure to always check the manual if you need to modify your
configs or schemas:
https://solr.apache.org/guide/9_0/solr-upgrade-notes.html

Maybe you want also to check some examples:
https://dovecot.org/pipermail/dovecot/2022-May/124701.html
https://dovecot.org/pipermail/dovecot/2022-May/124711.html