Skip to content

Commit

Permalink
Use initParams in SolrConfig to dedup between algorithms.
Browse files Browse the repository at this point in the history
Co-authored-by: Anna Headley <hackartisan@users.noreply.github.com>
Co-authored-by: Carolyn Cole <carolyncole@users.noreply.github.com>
Co-authored-by: Eliot Jordan <eliotjordan@users.noreply.github.com>
Co-authored-by: James R. Griffin III <jrgriffiniii@users.noreply.github.com>
  • Loading branch information
5 people committed Nov 8, 2023
1 parent 2fe4921 commit 56ae36e
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions solr/conf/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,7 @@
<queryResultMaxDocsCached>500</queryResultMaxDocsCached>
</query>

<!-- SearchHandler
http://wiki.apache.org/solr/SearchHandler
For processing Search Queries, the primary Request Handler
provided with Solr is "SearchHandler" It delegates to a sequent
of SearchComponents (see below) and supports distributed
queries across multiple shards
-->
<requestHandler name="search" class="solr.SearchHandler" default="true">
<initParams name="searchParams" path="search,engineering_search">
<!-- default values for query parameters can be specified, these
will be overridden by parameters in the request
-->
Expand Down Expand Up @@ -359,6 +350,24 @@
<str name="f.language_facet.facet.limit">1000</str>
<str name="f.advanced_location_s.facet.limit">500</str>
</lst>
</initParams>

<!-- SearchHandler
http://wiki.apache.org/solr/SearchHandler
For processing Search Queries, the primary Request Handler
provided with Solr is "SearchHandler" It delegates to a sequent
of SearchComponents (see below) and supports distributed
queries across multiple shards
-->
<requestHandler name="search" class="solr.SearchHandler" default="true"></requestHandler>

<requestHandler name="engineering_search" class="solr.SearchHandler">
<!-- Appends means we add this parameter always but the query sent by the client can also add more of them. -->
<lst name="appends">
<str name="boost">if(termfreq(text,'engineering'),100,0)</str>
</lst>
</requestHandler>

<requestHandler name="/advanced" class="solr.SearchHandler">
Expand Down

0 comments on commit 56ae36e

Please sign in to comment.