Skip to content

Commit db2f5c1

Browse files
Merge pull request #38 from kitconcept/fix-solr-9-configuration
Change configuration to solr v9
2 parents a4dbdc8 + 94edd2e commit db2f5c1

File tree

5 files changed

+26
-18
lines changed

5 files changed

+26
-18
lines changed

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ services:
44
context: solr/
55
ports:
66
- 8983:8983
7+
environment:
8+
SOLR_OPTS: "-Dsolr.config.lib.enabled=true"
79
command:
810
- solr-precreate
911
- plone

solr/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# syntax=docker/dockerfile:1
2-
FROM solr:8
2+
FROM solr:9
33

44
LABEL maintainer="kitconcept, GmbH <info@kitconcept.com>" \
55
org.label-schema.name="ghcr.io/kitconcept/solr" \

solr/etc/conf/solrconfig.xml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,21 @@
1212
<schemaFactory class="ClassicIndexSchemaFactory" />
1313

1414
<!-- TIKA START -->
15-
<!-- Load Data Import Handler and Apache Tika (extraction) libraries -->
16-
<lib dir="${solr.install.dir:../../../..}/dist/"
17-
regex="solr-dataimporthandler-.*\.jar"
15+
<lib dir="${solr.install.dir:../../../..}/modules/extraction/lib"
16+
regex=".*\.jar"
1817
/>
1918

20-
<lib dir="${solr.install.dir:../../../..}/contrib/extraction/lib"
19+
<lib dir="${solr.install.dir:../../../..}/modules/clustering/lib/"
2120
regex=".*\.jar"
2221
/>
23-
<lib dir="${solr.install.dir:../../../..}/dist/"
24-
regex="solr-cell-\d.*\.jar"
25-
/>
2622

27-
<lib dir="${solr.install.dir:../../../..}/contrib/langid/lib/"
23+
<lib dir="${solr.install.dir:../../../..}/modules/langid/lib/"
2824
regex=".*\.jar"
2925
/>
30-
<lib dir="${solr.install.dir:../../../..}/dist/"
31-
regex="solr-langid-\d.*\.jar"
32-
/>
3326

34-
<lib dir="${solr.install.dir:../../../..}/contrib/velocity/lib"
27+
<lib dir="${solr.install.dir:../../../..}/modules/ltr/lib/"
3528
regex=".*\.jar"
3629
/>
37-
<lib dir="${solr.install.dir:../../../..}/dist/"
38-
regex="solr-velocity-\d.*\.jar"
39-
/>
4030

4131
<!-- Request Dispatcher
4232
This section contains instructions for how the SolrDispatchFilter

src/kitconcept/solr/profiles/default/registry/kitconcept.solr.interfaces.IKitconceptSolrSettings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
],
2929
"highlightingFields": [
3030
{"field": "content", "prop": "highlighting"},
31-
{"field": "title", "prop": "highlighting_title"},
32-
{"field": "description", "prop": "highlighting_description"}
31+
{"field": "Title", "prop": "highlighting_title"},
32+
{"field": "Description", "prop": "highlighting_description"}
3333
],
3434
"searchTabs": [
3535
{

tox.ini

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,22 @@ extras =
132132
test
133133

134134

135+
[testenv:devtest]
136+
# It's not possible to parametrize pytest with a given pattern
137+
# via the "test" target, because all the tests are ALREADY added,
138+
# so all tests would run regardless of what I want.
139+
description = run the tests, pytest parametrized
140+
use_develop = true
141+
skip_install = false
142+
constrain_package_deps = false
143+
set_env =
144+
ROBOT_BROWSER=headlesschrome
145+
commands =
146+
pytest --disable-warnings {posargs}
147+
extras =
148+
test
149+
150+
135151
[testenv:coverage]
136152
description = get a test coverage report
137153
use_develop = true

0 commit comments

Comments
 (0)