Skip to content

Commit 100f061

Browse files
authored
Merge pull request internetarchive#11188 from cdrini/11168/refactor/update-solr
Update solr to latest version, 9.9.0
2 parents 1231e23 + 03d93e7 commit 100f061

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

compose.production.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ services:
2222
- ../olsystem/etc/ia.ini:/home/openlibrary/.config/ia.ini
2323

2424
solr:
25-
profiles: ["ol-solr0"]
25+
# Disabled while we're updating our version of solr, otherwise it'll pull down the new image!
26+
profiles: ["ol-never"]
2627
environment:
2728
# More memory for production
2829
- SOLR_JAVA_MEM=-Xms10g -Xmx10g

compose.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ services:
1717
max-file: "4"
1818

1919
solr:
20-
image: solr:9.5.0
20+
image: solr:9.9.0
2121
expose:
2222
- 8983
2323
environment:
@@ -33,6 +33,7 @@ services:
3333
-Dsolr.autoSoftCommit.maxTime=60000
3434
-Dsolr.autoCommit.maxTime=120000
3535
-Dsolr.max.booleanClauses=30000
36+
- SOLR_MODULES=analysis-extras
3637
volumes:
3738
- solr-data:/var/solr
3839
- ./conf/solr:/opt/solr/server/solr/configsets/olconfig:ro

conf/solr/conf/solrconfig.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@
7373
with their external dependencies.
7474
-->
7575
<!-- <lib dir="${solr.install.dir:../../../..}/modules/ltr/lib" regex=".*\.jar" /> -->
76-
<lib dir="${solr.install.dir:../../../..}/modules/analysis-extras/lib" regex="solr-analysis-extras-\d.*\.jar" />
76+
<!-- <lib dir="${solr.install.dir:../../../..}/modules/analysis-extras/lib" regex="solr-analysis-extras-\d.*\.jar" />
7777
<lib dir="${solr.install.dir:../../../..}/modules/analysis-extras/lib" regex="lucene-analysis-icu-\d.*\.jar" />
78-
<lib dir="${solr.install.dir:../../../..}/modules/analysis-extras/lib" regex="icu4j-\d.*\.jar" />
78+
<lib dir="${solr.install.dir:../../../..}/modules/analysis-extras/lib" regex="icu4j-\d.*\.jar" /> -->
7979

8080
<!-- an exact 'path' can be used instead of a 'dir' to specify a
8181
specific jar file. This will cause a serious error to be logged

scripts/solr_builder/compose.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ services:
2929
solr:
3030
profiles:
3131
- build
32-
image: solr:9.5.0
32+
image: solr:9.9.0
3333
restart: on-failure
3434
environment:
3535
# This is optimized for bulk loading, but should be shortened for production
3636
# and we should set autoSoftCommit to a value that makes sense for our query usage (5-15 sec?)
3737
- SOLR_OPTS=-Dsolr.autoCommit.maxTime=3600000
38+
- SOLR_MODULES=analysis-extras
3839
- SOLR_JAVA_MEM=-Xms3g -Xmx3g
3940
ports:
4041
- 8983:8983
@@ -53,7 +54,7 @@ services:
5354
profiles:
5455
- production
5556
restart: unless-stopped
56-
image: solr:9.5.0
57+
image: solr:9.9.0
5758
expose:
5859
- 8983
5960
environment:

0 commit comments

Comments
 (0)