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
configuration:using_vufind_without_solr [2019/10/15 13:27] – [Configuration] demiankatzconfiguration:using_vufind_without_solr [2023/11/09 19:22] (current) demiankatz
Line 1: Line 1:
-====== Using VuFind Without Solr ======+====== Using VuFind® Without Solr ======
  
-VuFind is most commonly used as a front-end for a local Solr index, but it can be used in other ways as well. See [[configuration:third-party_content|Third-Party Content]] for a list of supported providers.+VuFind® is most commonly used as a front-end for a local Solr index, but it can be used in other ways as well. See [[configuration:third-party_content|Third-Party Content]] for a list of supported providers.
  
 ===== Configuration ===== ===== Configuration =====
Line 7: Line 7:
 ==== 1. Set defaultModule ==== ==== 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]].
  
-By default, this setting is set to "Search," which means that when you initially access VuFind's URL, you are forwarded to the Home action of the Search controller, which defaults the user to Solr searching.+By default, this setting is set to "Search," which means that when you initially access VuFind®'s URL, you are forwarded to the Home action of the Search controller, which defaults the user to Solr searching.
  
 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.
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 theme. This 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. Starting with VuFind® 6.1, 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.).
- +
-<pre> +
-if (!isset($this->searchClassId)) { +
-    $this->searchClassId = 'Solr'; +
-+
-</pre> +
- +
-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 ----
 +properties.Page Owner : 
 ---- ----
  
configuration/using_vufind_without_solr.1571146046.txt.gz · Last modified: 2019/10/15 13:27 by demiankatz