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

Next revision
Previous revision
Last revisionBoth sides next revision
configuration:using_vufind_without_solr [2019/10/15 13:19] – created demiankatzconfiguration:using_vufind_without_solr [2019/10/23 19:05] – [2. Adjust search box defaults] demiankatz
Line 4: Line 4:
  
 ===== Configuration ===== ===== Configuration =====
 +
 +==== 1. Set defaultModule ====
  
 The key to using VuFind without Solr is the defaultModule setting in [[configuration:files:config.ini|config.ini]]. The key to using VuFind without Solr is the defaultModule setting in [[configuration:files:config.ini|config.ini]].
Line 10: Line 12:
  
 If you prefer to use a different service, such as EDS or Summon, you can simply change this setting to the name of the appropriate controller, which in most cases will correspond to the name of the service you wish to access. If you prefer to use a different service, such as EDS or Summon, you can simply change this setting to the name of the appropriate controller, which in most cases will correspond to the name of the service you wish to access.
 +
 +==== 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. Depending on your VuFind version, you can configure this in different ways.
 +
 +=== 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)) {
 +    $this->searchClassId = 'Solr';
 +}
 +</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.).
 ---- struct data ---- ---- struct data ----
 ---- ----
  
configuration/using_vufind_without_solr.txt · Last modified: 2023/11/09 19:22 by demiankatz