About Features Downloads Getting Started Documentation Events Support GitHub

Love VuFind®? Consider becoming a financial supporter. Your support helps build a better VuFind®!

Site Tools


Warning: This page has not been updated in over over a year and may be outdated or deprecated.
configuration:using_vufind_without_solr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
configuration:using_vufind_without_solr [2019/10/15 13:27] – [Configuration] demiankatzconfiguration:using_vufind_without_solr [2019/10/23 19:05] – [2. Adjust search box defaults] demiankatz
Line 15: Line 15:
 ==== 2. Adjust search box defaults ==== ==== 2. Adjust search box defaults ====
  
-By default, VuFind's search box template defaults to Solr search options when accessed from "generic" pages such as user account pages or the search history screen. This behavior is controlled by the search/searchbox.phtml template within your chosen themeThis is done with logic similar to:+By default, VuFind's search box template defaults to Solr search options when accessed from "generic" pages such as user account pages or the search history screen. Depending on your VuFind version, you can configure this in different ways.
  
-<pre>+=== VuFind 6.1 or newer === 
 + 
 +The defaultSearchBackend setting in the [Site] section of [[configuration:files:config.ini]] can be used to control the default search box behavior. Set it to the name of the search backend you wish to use by default (e.g. EDS, Summon, etc.). 
 + 
 +=== Earlier versions === 
 + 
 +This behavior is controlled by the search/searchbox.phtml template within your chosen theme. This is done with logic similar to: 
 + 
 +<code>
 if (!isset($this->searchClassId)) { if (!isset($this->searchClassId)) {
     $this->searchClassId = 'Solr';     $this->searchClassId = 'Solr';
 } }
-</pre>+</code>
  
 You should copy this template into your [[development:architecture:user_interface|local custom theme]], and change 'Solr' to the backend ID of your chosen search system (e.g. 'Summon', 'EDS', etc.). You should copy this template into your [[development:architecture:user_interface|local custom theme]], and change 'Solr' to the backend ID of your chosen search system (e.g. 'Summon', 'EDS', etc.).
configuration/using_vufind_without_solr.txt · Last modified: 2023/11/09 19:22 by demiankatz