Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
configuration:search_customization [2015/12/14 20:43] – ↷ Links adapted because of a move operation demiankatz | configuration:search_customization [2018/12/19 18:32] – [Defining Search Types] demiankatz |
---|
===== Defining Search Types ===== | ===== Defining Search Types ===== |
| |
The available search types are defined in a file called searchspecs.yaml. This file may be found in the web/conf directory in VuFind 1.x; in VuFind 2.x, default settings are found in config/vufind and may be copied and customized in the config/vufind subdirectory of your [[configuration:local_settings_directory|local settings directory]]. | The available search types are defined in a file called searchspecs.yaml. This file may be found in config/vufind and may be copied and customized in the config/vufind subdirectory of your [[configuration:local_settings_directory|local settings directory]]. |
| |
[[http://www.yaml.org/|YAML]] is a text file format for storing data that is a little more flexible than the standard .ini files used by most of VuFind. Don't be intimidated -- most simple changes can be made without needing a deep understanding of how YAML works, and most new searches you will need can be created by copying some of the samples provided with the default VuFind installation. | [[http://www.yaml.org/|YAML]] is a text file format for storing data that is a little more flexible than the standard .ini files used by most of VuFind. Don't be intimidated -- most simple changes can be made without needing a deep understanding of how YAML works, and most new searches you will need can be created by copying some of the samples provided with the default VuFind installation. |
===== Search Interface Customization ===== | ===== Search Interface Customization ===== |
| |
A file called [[:searches.ini]] is used to control which of the search types defined in searchspecs.yaml are used by VuFind. The [Basic_Searches] section defines which search options are displayed in the basic search box found on most pages of the interface. The [Advanced_Searches] section defines which search options are displayed on the Advanced Search screen. You can adjust the order in both areas to meet your needs. Note that if you are working in a multi-language environment, you will need to create translations for any text you enter into searches.ini in the language files found in the web/lang directory. | A file called [[configuration:files:searches.ini]] is used to control which of the search types defined in searchspecs.yaml are used by VuFind. The [Basic_Searches] section defines which search options are displayed in the basic search box found on most pages of the interface. The [Advanced_Searches] section defines which search options are displayed on the Advanced Search screen. You can adjust the order in both areas to meet your needs. Note that if you are working in a multi-language environment, you will need to create translations for any text you enter into searches.ini in the language files found in the web/lang directory. |
| |
===== Other Customizable Options ===== | ===== Other Customizable Options ===== |
| |
The [General] section of [[:searches.ini]] allows some additional customization of search-related features: | The [General] section of [[configuration:files:searches.ini]] allows some additional customization of search-related features: |
| |
* The case_sensitive_bools setting lets you choose whether boolean operators in the search string must be ALL UPPERCASE in order to be recognized (true) or if they will be used regardless of case (false). The default setting is true. | * The case_sensitive_bools setting lets you choose whether boolean operators in the search string must be ALL UPPERCASE in order to be recognized (true) or if they will be used regardless of case (false). The default setting is true. |