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-solr-10.0.0_1,1:
JTS=off: Enable support for JTS Topology Suite
===> Use 'make config' to modify these settings
Reason:
Apache solr is upgraded to version 9.
Data migration is required, examples for dovecot data can be found here:
https://dovecot.org/pipermail/dovecot/2022-May/124701.html
https://dovecot.org/pipermail/dovecot/2022-May/124711.html
If you like to stay on version8:
# pkg delete apache-solr
# pkg install apache-solr8
Reason:
Apache solr version 9 is released and made available as extra port
textproc/apache-solr9.
Version 9 cannot start directly with data from version 8. Additional steps
for data migration is required.
If you like to use the new version, deinstall the old version and install
the new version:
# pkg delete apache-solr
# pkg install apache-solr9
After this you need to migrate data and migration, for this check the solr
documentation.
port moved here from textproc/apache-solr8 on 2024-12-24 REASON: Has expired: Deprecated upstream 2024-10-25, upgrade to version 9 in textproc/apache-solr instead
port moved here from textproc/apache-solr9 on 2023-06-18 REASON: New stable release
textproc/apache-solr: start by default in standalone mode
Use a more failure proof usage of sockstat to detect in startup script
if solr is already running.
Mk/**java.mk: Convert bsd.java.mk to USES
The following features have been added or changed:
- Instead of USE_JAVA use USES=java. This defaults to
USES=java:build,run if NO_BUILD is undefined. Else it defaults to
USES=java:run
- Instead of USE_ANT=yes use USES=java:ant which also implies
USES=java:build
- Instead of JAVA_BUILD=yes use USES=java:build. Does not imply run or
extract
- Instead of JAVA_EXTRACT=yes use USES=java:extract does not imply
build or run
- Instead of JAVA_RUN=yes use USES=java:run does not imply extract or
build
- Instead of USE_JAVA=<version> use USES=java and JAVA_VERSION=<version>
Approved by: mat (portmgr), glewis
Differential Revision: https://reviews.freebsd.org/D48201
textproc/apache-solr: use sockstat instead of lsof
While starting solr it is using now sockstat and can detect now if the start
was successful.
The patch is also provided upstream here:
https://github.com/apache/solr/pull/2906
Thanks a lot freebsd@koenigbj.8bx.de to provide with the required sockstat
parameters to make this PR possible.
PR: 283270
textproc/apache-solr: make sure SOLR_HOME points to /var/db/solr
The new solr.in.sh has the last newline removed which caused the
SOLR_HOME line not to be added on a new line.
Re-added CPE definition, as this was not part of apache-solr9.
Revert "textproc/apache-solr: Update version 8.11.2=>9.0.0"
This reverts commit b224cb40ad545da1f09dcf0d8bafb8baf0e1b110.
This upgrade break solr installation as additional work may be
required to get the new version with existing collections
working.
textproc/apache-solr: Update version 8.11.2=>9.0.0
- Pet portclippy
IMPORTANT NOTE:
Data Import Handler has been removed from this version. Please use the
third party community plugin from:
https://github.com/rohitbemax/dataimporthandler
Approved by: mfechner (By implicit mail in developers@)
Sponsored by: Bounce Experts
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
textproc/apache-solr: update to 8.11.2
Security
SOLR-15871: Update Log4J to 2.17.1
SOLR-15961: Fix bug in PKIAuthenticationPlugin that can cause a request to
fail with 401 Unauthorized instead of re-fetching expired remote keys from other
nodes.
SOLR-14569: Configuring a shardHandlerFactory on the /select requestHandler
results in HTTP 401 when searching on alias in secured Solr.
SOLR-16022: Enforce special character requirements on passwords with length
less than 15
SOLR-16075: ShowFileHandler path parameter is now validated to be relative
to instance conf dir in standalone mode
Bugfixes
SOLR-15849: Fix the connection reset problem caused by the incorrect use of
4LW with \n when monitoring zooKeeper status
SOLR-16199: Improve query syntax construction for SQL LIKE clause with
phrases and wildcards
SOLR-16143: SolrConfig can miss updates from ZooKeeper when deleting and
recreating file items
Changelog:
https://cwiki.apache.org/confluence/display/SOLR/ReleaseNote8_11_2
MFH: 2022Q2
textproc/apache-solr: Update MASTER_SITES
Use a direct URL to Apache's release archive site as it's not mirrored
by upstream mirror sites
Approved by: rene (portmgr blanket), tcberner (mentor)
Differential Revision: https://reviews.freebsd.org/D32614
Reused a script tz@ developed for this gitlab-ce project to automatically create
a plist.
Added the script and added a target to simplify further upgrades.
textproc/apache-solr: security related update to 8.4.1
Switch java version to current LTS version.
MFH: 2020Q1
Security: e59cb761-5ad8-11ea-abb7-001b217b3468
Changed the MAINTAINER of all my ports to have mfechner@FreeBSD.org listed.
Reviewed by: tz (mentor)
Approved by: tz (mentor)
Differential Revision: https://reviews.freebsd.org/D15270
textproc/apache-solr: update to 7.1.0.
Highlights for this Solr release include:
Critical Security Update: Fix for CVE-2017-12629 which is a working 0-day
exploit reported on the public mailing list.
Auto-scaling: Solr can now move replicas automatically when a new node is added
or an existing node is removed using the auto scaling policy framework
introduced in 7.0
Auto-scaling: The 'autoAddReplicas' feature which was limited to shared file
systems is now available for all file systems. It has been ported to use the new
autoscaling framework internally.
Auto-scaling: New set-trigger, remove-trigger, set-listener, remove-listener,
suspend-trigger, resume-trigger APIs
Auto-scaling: New /autoscaling/history API to show past autoscaling actions and
cluster events
New JSON based Query DSL for Solr that extends JSON Request API to also support
all query parsers and their nested parameters
JSON Facet API: min/max aggregations are now supported on single-valued date
fields
Lucene's Geo3D (surface of sphere & ellipsoid) is now supported on spatial RPT
fields by setting spatialContextFactory="Geo3D". Furthermore, this is the first
time Solr has out of the box support for polygons
Expanded support for statistical stream evaluators such as various
distributions, rank correlations, distances and more.
Multiple other optimizations and bug fixes
PR: 223073
Submitted by: idefix@fechner.net (Maintainer)
Security: CVE-2017-12629
Stock apache-solr scripts use lsof during startup to check if Solr started
properly.
When deploying Apache Solr in Jail lsof needs access to /dev/mem which is not
allowed by default. Lack of the access makes the startup script run in the loop
for 3 minutes and then it assumes that it might have succeed.
Allowing access to /dev/mem makes running Solr in Jail a bit pointless.
Following patch changes the behaviour of Solr startup script to use sockstat
instead of lsof to check if Solr has already started. This also makes the
dependency on lsof obsolete.
While here, pet portlint.
PR: 218654
Submitted by: Wiktor Niesiobedzki <bsd@vink.pl>
Approved by: idefix@fechner.net (maintainer), adamw (mentor)
Differential Revision: https://reviews.freebsd.org/D10416
Remove UNIQUENAME and LATEST_LINK.
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now,
we won't have conflicts there.
Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer
is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel
has the correct PKGNAME anyway.
Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called
OPTIONS_FILE now.)
Reviewed by: antoine, bapt
Exp-run by: antoine
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D3336
textproc/apache-solr: fixing the port, providing missing files
- Provide missing files like bin/solr and bin/post
- still open: provide a working startup script and some instructions
on how to configure
PR: 201455
Submitted by: idefix@fechner.net, elferdo@gmail.com
MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight
textproc/apache-solr: Reset maintainer
There's been 3 consecutive PR timeouts on this port (two still pending
from early December). The last sighting of former maintainer was
November 2013 and he didn't stage the port (strike 4). That's the
justification for the reset.
- Update to version 4.2.0 [1]
- Convert to OptionsNG
- Fix WWW: line in pkg-descr
PR: ports/176876 [1]
Submitted by: Hung-Yi Chen <gaod@hychen.org> (maintainer)
- Update to 3.6.0, and pass maintainership to submitter [1]
- while here... [2]
- Add AL2 License
- drop unneeded usage of bsd.port.pre.mk
- standardize on MASTER_SITES
- standardize on install, use COPYTREE_SHARE in favor of CP
- use PORTEXAMPLES, and have plist follow
PR: ports/167511
Submitted by: gaod@hychen.org [1], jgh@ [2]
Approved by: maintainer, gslin@gslin.org [1], new maintainer gaod@hychen.org
[2]
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.
WWW: http://lucene.apache.org/solr/
PR: ports/132665
Submitted by: Gea-Suan Lin <gslin at gslin.org>