Skip to content

Commit

Permalink
Use new-style request handler configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Jul 16, 2024
1 parent 5e48a2c commit 68dc152
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ class CatalogController < ApplicationController
## Default parameters to send on single-document requests to Solr. These settings are the Blackligt defaults (see SolrHelper#solr_doc_params) or
## parameters included in the Blacklight-jetty document requestHandler.
#
config.document_solr_path = 'select'
config.document_solr_path = 'document'
config.default_document_solr_params = {
:qt => 'document',
# ## These are hard-coded in the blacklight 'document' requestHandler
# # :fl => '*',
# # :rows => 1
Expand Down
4 changes: 2 additions & 2 deletions config/solr_configs/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
of SearchComponents (see below) and supports distributed
queries across multiple shards
-->
<requestHandler name="search" class="solr.SearchHandler" default="true">
<requestHandler name="/select" class="solr.SearchHandler">
<lst name="defaults">
<str name="defType">edismax</str>
<str name="echoParams">explicit</str>
Expand Down Expand Up @@ -1049,7 +1049,7 @@
</requestHandler>

<!-- single document requests; use id=666 instead of q=id:666 -->
<requestHandler name="document" class="solr.SearchHandler" >
<requestHandler name="/document" class="solr.SearchHandler" >
<lst name="defaults">
<str name="echoParams">explicit</str>
<str name="fl">
Expand Down

0 comments on commit 68dc152

Please sign in to comment.