Skip to content

Commit 589241e

Browse files
authored
Merge pull request #3806 from projectblacklight/solr-10
Configuration for Solr 10, Drop solr 8 support
2 parents 0e12a84 + 3800088 commit 589241e

4 files changed

Lines changed: 9 additions & 17 deletions

File tree

.github/matrix.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
{
4343
"ruby": "3.2",
4444
"rails_version": "8.0.4",
45-
"solr_version": "8.11.2",
46-
"additional_name": "| Solr 8.11.2 and Ruby 3.2"
45+
"solr_version": "9",
46+
"additional_name": "| Solr 9 and Ruby 3.2"
4747
},
4848
{
4949
"ruby": "3.4",

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
matrix: ${{fromJson(needs.set_matrix.outputs.matrix)}}
3232
env:
3333
RAILS_VERSION: ${{ matrix.rails_version }}
34-
SOLR_VERSION: ${{ matrix.solr_version || '9' }}
34+
SOLR_VERSION: ${{ matrix.solr_version || 'latest' }}
3535
VIEW_COMPONENT_VERSION: ${{ matrix.view_component_version }}
3636
BOOTSTRAP_VERSION: ${{ matrix.bootstrap_version }}
3737
BLACKLIGHT_API_TEST: ${{ matrix.api }}

lib/generators/blacklight/templates/solr/conf/schema.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
2-
<schema name="Hydra" version="1.5">
2+
<schema name="Blacklight-default" version="1.6">
33
<!-- NOTE: various comments and unused configuration possibilities have been purged
44
from this file. Please refer to http://wiki.apache.org/solr/SchemaXml,
55
as well as the default schema file included with Solr -->
@@ -309,7 +309,7 @@
309309
<types>
310310
<fieldType name="string" class="solr.StrField" sortMissingLast="true" />
311311
<fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" />
312-
<fieldType name="rand" class="solr.RandomSortField" omitNorms="true" />
312+
<fieldType name="rand" class="solr.RandomSortField" />
313313

314314
<!-- Default numeric field types. -->
315315
<fieldType name="int" class="solr.IntPointField" docValues="true" />
@@ -364,7 +364,7 @@
364364
<fieldType name="bbox" class="solr.BBoxField" geo="true" distanceUnits="kilometers" numberType="_bbox_coord" storeSubFields="false" />
365365
<fieldType name="_bbox_coord" class="solr.DoublePointField" docValues="true" stored="false" />
366366

367-
<fieldType name="text" class="solr.TextField" omitNorms="false">
367+
<fieldType name="text" class="solr.TextField">
368368
<analyzer>
369369
<tokenizer class="solr.ICUTokenizerFactory" />
370370
<filter class="solr.ICUFoldingFilterFactory" /> <!-- NFKC, case folding, diacritics removed -->
@@ -381,7 +381,7 @@
381381
</fieldType>
382382

383383
<!-- single token analyzed text, for sorting. Punctuation is significant. -->
384-
<fieldtype name="alphaSort" class="solr.TextField" sortMissingLast="true" omitNorms="true">
384+
<fieldtype name="alphaSort" class="solr.TextField" sortMissingLast="true">
385385
<analyzer>
386386
<tokenizer class="solr.KeywordTokenizerFactory" />
387387
<filter class="solr.ICUFoldingFilterFactory" />

lib/generators/blacklight/templates/solr/conf/solrconfig.xml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
from this file. Please refer to http://wiki.apache.org/solr/SolrConfigXml,
55
as well as the default solrconfig file included with Solr -->
66

7-
<abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
8-
9-
<luceneMatchVersion>6.1.0</luceneMatchVersion>
7+
<luceneMatchVersion>9.0.0</luceneMatchVersion>
108

119
<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.StandardDirectoryFactory}" />
1210

@@ -16,17 +14,11 @@
1614
</updateLog>
1715
</updateHandler>
1816

19-
<!-- solr lib dirs, which are needed for Solr 8 compatibility but ignored in solr 9.8 and above -->
2017
<lib dir="${solr.install.dir:../../../..}/modules/analysis-extras/lib" />
21-
<lib dir="${solr.install.dir:../../../..}/contrib/analysis-extras/lib" />
22-
<lib dir="${solr.install.dir:../../../..}/contrib/analysis-extras/lucene-libs" />
2318

2419
<dataDir>${solr.data.dir:}</dataDir>
2520

26-
<requestHandler name="search" class="solr.SearchHandler" default="true">
27-
<!-- default values for query parameters can be specified, these
28-
will be overridden by parameters in the request
29-
-->
21+
<requestHandler name="/select" class="solr.SearchHandler">
3022
<lst name="defaults">
3123
<str name="defType">edismax</str>
3224
<str name="echoParams">explicit</str>

0 commit comments

Comments
 (0)