Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/ci-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v7

- name: Setup Java
if: ${{ inputs.phing_task_phpunit }}
uses: actions/setup-java@v6
with:
# Solr 10 requires Java 21 or later.
distribution: temurin
java-version: '21'

- name: Configure Apache for PHP ${{ matrix.php-version }}
if: ${{ inputs.phing_task_phpunit }}
run: |
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
/downloads
/Gruntfile.local.js
/solr/vendor
# Generated at startup by solr.sh (see solr.sh for details)
/solr/vufind/biblio/lib/
/themes/minktest
/vendor
ChangeLog
Expand Down
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<property name="phpmd_cache_params" value="--cache" />
<property name="phpunit_command" value="${srcdir}/vendor/bin/phpunit" />
<property name="phpunit_extra_params" value="" />
<property name="composer_version" value="2.7.7" />
<property name="composer_version" value="2.9.8" />
<property name="composer_extra_params" value="" />
<property name="mink_driver" value="selenium" />
<property name="screenshot_dir" value="" /><!-- set to a directory name to capture screenshots of failed tests -->
Expand All @@ -62,7 +62,7 @@
<property name="default_test_retry_count" value="5" /><!-- default retry count for Mink tests; increase when tests fail on slow systems -->
<property name="solr_startup_sleep" value="0" />
<property name="solr_additional_jvm_options" value="-Dlog4j2.formatMsgNoLookups=true" />
<property name="solr_version" value="9.8.1" />
<property name="solr_version" value="10.0.0" />
<property name="solr_port" value="8983" />
<property name="skip_phpdoc" value="false" />
<property name="phpdoc_version" value="3.10.0" />
Expand Down
4 changes: 4 additions & 0 deletions import-marc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ if [ $REGENERATE_SOLRJ_DIR -eq 1 ]
then
for file in $VUFIND_HOME/solr/vendor/server/solr-webapp/webapp/WEB-INF/lib/solr*.jar $VUFIND_HOME/solr/vendor/server/solr-webapp/webapp/WEB-INF/lib/http*.jar
do
# Newer Solr versions (10 and later) no longer ship http*.jar files in the
# webapp, so an unmatched glob pattern would be passed through literally by
# the shell; only link files that actually exist.
[ -e "$file" ] || continue
ln -s $file $SOLRJ_DIR/`basename "$file"`
done
fi
Expand Down
Binary file modified import/browse-indexing.jar
Binary file not shown.
Binary file modified import/solrmarc_core_3.5.jar
Binary file not shown.
31 changes: 30 additions & 1 deletion solr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,33 @@ then
fi

export SOLR_LOGS_DIR=$SOLR_LOGS_DIR
"$SOLR_BIN/solr" "$1" ${SOLR_ADDITIONAL_START_OPTIONS} --port "$SOLR_PORT" --solr-home "$SOLR_HOME" -m "$SOLR_HEAP" --user-managed --jvm-opts "-Ddisable.configEdit=true -Dsolr.log=$SOLR_LOGS_DIR -Dsolr.config.lib.enabled=true $SOLR_ADDITIONAL_JVM_OPTIONS"

# The biblio core needs several jars on its classpath. Solr 10 no longer
# supports <lib/> entries in solrconfig.xml, and the core lib/ directory only
# picks up jar files directly inside it (not subdirectories). We therefore
# (re)generate the lib/ symlinks on every start, from:
# - the stable jars checked into the VuFind repo, and
# - the "analysis-extras" module (e.g. ICU4J for the browse normalizers).
# Every symlink in lib/ is regenerated, so the directory is a pure runtime
# artifact (git-ignored) and self-heals across Solr upgrades.
BIBLIO_LIB="$SOLR_HOME/biblio/lib"
mkdir -p "$BIBLIO_LIB"
for link in "$BIBLIO_LIB"/*
do
[ -L "$link" ] && rm -f "$link"
done
for jar in "$SOLR_HOME/jars"/*.jar \
"$VUFIND_HOME/import"/solrmarc_core_*.jar \
"$VUFIND_HOME/import/lib"/marc4j-*.jar
do
[ -e "$jar" ] && ln -sf "$jar" "$BIBLIO_LIB/"
done
if [ -d "$VUFIND_HOME/solr/vendor/modules/analysis-extras/lib" ]
then
for jar in "$VUFIND_HOME/solr/vendor/modules/analysis-extras/lib"/*.jar
do
ln -sf "$jar" "$BIBLIO_LIB/"
done
fi

"$SOLR_BIN/solr" "$1" ${SOLR_ADDITIONAL_START_OPTIONS} --port "$SOLR_PORT" --solr-home "$SOLR_HOME" -m "$SOLR_HEAP" --user-managed --jvm-opts "-Ddisable.configEdit=true -Dsolr.log=$SOLR_LOGS_DIR $SOLR_ADDITIONAL_JVM_OPTIONS"
2 changes: 1 addition & 1 deletion solr/vufind/authority/conf/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
that you fully re-index after changing this setting as it can
affect both how text is indexed and queried.
-->
<luceneMatchVersion>9.11</luceneMatchVersion>
<luceneMatchVersion>10.3.2</luceneMatchVersion>

<!-- Use the classic schema style by default for VuFind -->
<schemaFactory class="ClassicIndexSchemaFactory"/>
Expand Down
7 changes: 1 addition & 6 deletions solr/vufind/biblio/conf/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
that you fully re-index after changing this setting as it can
affect both how text is indexed and queried.
-->
<luceneMatchVersion>9.11</luceneMatchVersion>
<luceneMatchVersion>10.3.2</luceneMatchVersion>

<!-- Use the classic schema style by default for VuFind -->
<schemaFactory class="ClassicIndexSchemaFactory"/>
Expand All @@ -42,11 +42,6 @@
If replication is in use, this should match the replication configuration. -->
<dataDir>${solr.solr.home:./solr}/biblio</dataDir>

<lib dir="../../../import/lib" regex="marc4j.*\.jar" />
<lib dir="../../../import" regex="solrmarc_core.*\.jar" />
<lib dir="../../vendor/modules/analysis-extras/lib" regex=".*\.jar" />
<lib dir="../jars" regex=".*\.jar" />

<indexConfig>

<useCompoundFile>false</useCompoundFile>
Expand Down
Binary file modified solr/vufind/jars/browse-handler.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion solr/vufind/reserves/conf/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
that you fully re-index after changing this setting as it can
affect both how text is indexed and queried.
-->
<luceneMatchVersion>9.11</luceneMatchVersion>
<luceneMatchVersion>10.3.2</luceneMatchVersion>

<!-- Use the classic schema style by default for VuFind -->
<schemaFactory class="ClassicIndexSchemaFactory"/>
Expand Down
5 changes: 0 additions & 5 deletions solr/vufind/solr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,8 @@

<str name="host">${host:}</str>
<int name="hostPort">${jetty.port:8983}</int>
<str name="hostContext">${hostContext:solr}</str>

<bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool>

<int name="zkClientTimeout">${zkClientTimeout:30000}</int>
<int name="distribUpdateSoTimeout">${distribUpdateSoTimeout:600000}</int>
<int name="distribUpdateConnTimeout">${distribUpdateConnTimeout:60000}</int>

</solrcloud>

Expand Down
2 changes: 1 addition & 1 deletion solr/vufind/website/conf/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
that you fully re-index after changing this setting as it can
affect both how text is indexed and queried.
-->
<luceneMatchVersion>9.11</luceneMatchVersion>
<luceneMatchVersion>10.3.2</luceneMatchVersion>

<!-- Use the classic schema style by default for VuFind -->
<schemaFactory class="ClassicIndexSchemaFactory"/>
Expand Down