Skip to content

Commit e1056e7

Browse files
committed
Revert solrconfig params to explicitly submitted params
... for compatibility with collective.solr, which also uses this service.
1 parent e5ac96d commit e1056e7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

backend/src/kitconcept/solr/services/solr.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,13 @@ def _base_query(
178178
f"OR default:{term} OR body_text:{term} OR SearchableText:{term} "
179179
f"OR Subject:{term} OR searchwords:({term})^1000) -showinsearch:False"
180180
),
181+
"wt": "json",
181182
"hl": "true" if highlighting_utils.enabled else "false",
182183
"hl.fl": highlighting_utils.fields,
183184
"fq": [security_filter()],
184185
"fl": solr_config.field_list,
186+
"facet": "true",
187+
"facet.contains.ignoreCase": "true",
185188
"facet.field": [
186189
f"{self.facet_conditions.ex_field_facet(info['name'])}{info['name']}"
187190
for info in facet_fields

solr/etc/conf/solrconfig.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,7 @@
187187
<str name="echoParams">explicit</str>
188188
<int name="rows">10</int>
189189
<str name="df">SearchableText</str>
190-
<str name="wt">json</str>
191-
<str name="facet">true</str>
192-
<str name="facet.contains.ignoreCase">true</str>
190+
<str name="wt">xml</str>
193191
<str name="spellcheck">off</str>
194192
<str name="spellcheck.build">true</str>
195193
<str name="spellcheck.dictionary">spellWordbreak</str>

0 commit comments

Comments
 (0)