Merge pull request #17526 from mattwire/frontendrequiredpaymentfrequency
[civicrm-core.git] / settings / Search.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
6b7eb9df 4 | Copyright CiviCRM LLC. All rights reserved. |
6a488035 5 | |
6b7eb9df
TO
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
6a488035 9 +--------------------------------------------------------------------+
d25dd0ee 10 */
6a488035
TO
11
12/**
13 *
14 * @package CRM
ca5cec67 15 * @copyright CiviCRM LLC https://civicrm.org/licensing
6a488035
TO
16 * $Id$
17 *
18 */
19/*
20 * Settings metadata file
21 */
dfe1f88a
CW
22return [
23 'search_autocomplete_count' => [
6a488035
TO
24 'group_name' => 'Search Preferences',
25 'group' => 'Search Preferences',
26 'name' => 'search_autocomplete_count',
6a488035
TO
27 'type' => 'Integer',
28 'quick_form_type' => 'Element',
bfd9c358 29 'html_type' => 'number',
6a488035
TO
30 'default' => 10,
31 'add' => '4.3',
6b013845 32 'title' => ts('Autocomplete Results'),
6a488035
TO
33 'is_domain' => 1,
34 'is_contact' => 0,
6b013845 35 'description' => ts('The maximum number of contacts to show at a time when typing in an autocomplete field.'),
08e57c58 36 'help_text' => NULL,
dfe1f88a
CW
37 ],
38 'enable_innodb_fts' => [
56c2750b
TO
39 'group_name' => 'Search Preferences',
40 'group' => 'Search Preferences',
41 'name' => 'enable_innodb_fts',
56c2750b
TO
42 'type' => 'Boolean',
43 'quick_form_type' => 'YesNo',
44 'default' => 0,
45 'add' => '4.4',
6b013845 46 'title' => ts('InnoDB Full Text Search'),
56c2750b
TO
47 'is_domain' => 1,
48 'is_contact' => 0,
6b013845 49 'description' => ts('Enable InnoDB full-text search optimizations. (Requires MySQL 5.6+)'),
08e57c58 50 'help_text' => NULL,
dfe1f88a
CW
51 'on_change' => [
52 ['CRM_Core_InnoDBIndexer', 'onToggleFts'],
53 ],
54 ],
55 'fts_query_mode' => [
7d1b110a
TO
56 'group_name' => 'Search Preferences',
57 'group' => 'Search Preferences',
58 'name' => 'fts_query_mode',
7d1b110a
TO
59 'type' => 'String',
60 'quick_form_type' => 'Element',
dfe1f88a 61 'html_attributes' => [
7d1b110a
TO
62 'size' => 64,
63 'maxlength' => 64,
dfe1f88a 64 ],
c1a2145a 65 'html_type' => 'text',
7d1b110a
TO
66 'default' => 'simple',
67 'add' => '4.5',
6304e6c0 68 'title' => ts('How to handle full-text queries'),
7d1b110a
TO
69 'is_domain' => 1,
70 'is_contact' => 0,
08e57c58 71 'help_text' => NULL,
dfe1f88a
CW
72 ],
73 'includeOrderByClause' => [
08f4ab8d 74 'group_name' => 'Search Preferences',
75 'group' => 'Search Preferences',
76 'name' => 'includeOrderByClause',
08f4ab8d 77 'type' => 'Boolean',
78 'quick_form_type' => 'YesNo',
79 'default' => 1,
80 'add' => '4.6',
6b013845 81 'title' => ts('Include Order By Clause'),
08f4ab8d 82 'is_domain' => 1,
83 'is_contact' => 0,
6b013845 84 'description' => ts('If disabled, the search results will not be ordered. This may improve response time on search results on large datasets.'),
08f4ab8d 85 'help_text' => NULL,
dfe1f88a
CW
86 ],
87 'includeWildCardInName' => [
c3bc1eaf 88 'group_name' => 'Search Preferences',
89 'group' => 'Search Preferences',
90 'name' => 'includeWildCardInName',
c3bc1eaf 91 'type' => 'Boolean',
92 'quick_form_type' => 'YesNo',
93 'default' => 1,
94 'add' => '4.6',
6b013845 95 'title' => ts('Automatic Wildcard'),
c3bc1eaf 96 'is_domain' => 1,
97 'is_contact' => 0,
6b013845 98 'description' => ts("If enabled, wildcards are automatically added to the beginning AND end of the search term when users search for contacts by Name. EXAMPLE: Searching for 'ada' will return any contact whose name includes those letters - e.g. 'Adams, Janet', 'Nadal, Jorge', etc. If disabled, a wildcard is added to the end of the search term only. EXAMPLE: Searching for 'ada' will return any contact whose last name begins with those letters - e.g. 'Adams, Janet' but NOT 'Nadal, Jorge'. Disabling this feature will speed up search significantly for larger databases, but users must manually enter wildcards ('%' or '_') to the beginning of the search term if they want to find all records which contain those letters. EXAMPLE: '%ada' will return 'Nadal, Jorge'."),
c3bc1eaf 99 'help_text' => NULL,
dfe1f88a
CW
100 ],
101 'includeEmailInName' => [
c3bc1eaf 102 'group_name' => 'Search Preferences',
103 'group' => 'Search Preferences',
104 'name' => 'includeEmailInName',
c3bc1eaf 105 'type' => 'Boolean',
106 'quick_form_type' => 'YesNo',
107 'default' => 1,
108 'add' => '4.6',
6b013845 109 'title' => ts('Include Email'),
c3bc1eaf 110 'is_domain' => 1,
111 'is_contact' => 0,
6b013845 112 'description' => ts('If enabled, email addresses are automatically included when users search by Name. Disabling this feature will speed up search significantly for larger databases, but users will need to use the Email search fields (from Advanced Search, Search Builder, or Profiles) to find contacts by email address.'),
c3bc1eaf 113 'help_text' => NULL,
dfe1f88a
CW
114 ],
115 'includeNickNameInName' => [
c3bc1eaf 116 'group_name' => 'Search Preferences',
117 'group' => 'Search Preferences',
118 'name' => 'includeNickNameInName',
c3bc1eaf 119 'type' => 'Boolean',
120 'quick_form_type' => 'YesNo',
dc378d98 121 'default' => 0,
c3bc1eaf 122 'add' => '4.6',
6b013845 123 'title' => ts('Include Nickname'),
c3bc1eaf 124 'is_domain' => 1,
125 'is_contact' => 0,
6b013845 126 'description' => ts('If enabled, nicknames are automatically included when users search by Name.'),
c3bc1eaf 127 'help_text' => NULL,
dfe1f88a
CW
128 ],
129 'includeAlphabeticalPager' => [
c3bc1eaf 130 'group_name' => 'Search Preferences',
131 'group' => 'Search Preferences',
132 'name' => 'includeAlphabeticalPager',
c3bc1eaf 133 'type' => 'Boolean',
134 'quick_form_type' => 'YesNo',
135 'default' => 1,
136 'add' => '4.6',
6b013845 137 'title' => ts('Include Alphabetical Pager'),
c3bc1eaf 138 'is_domain' => 1,
139 'is_contact' => 0,
6b013845 140 'description' => ts('If disabled, the alphabetical pager will not be displayed on the search screens. This will improve response time on search results on large datasets.'),
c3bc1eaf 141 'help_text' => NULL,
dfe1f88a
CW
142 ],
143 'smartGroupCacheTimeout' => [
c3bc1eaf 144 'group_name' => 'Search Preferences',
145 'group' => 'Search Preferences',
146 'name' => 'smartGroupCacheTimeout',
c3bc1eaf 147 'type' => 'Integer',
dc378d98 148 'quick_form_type' => 'Element',
bfd9c358 149 'html_type' => 'number',
dc378d98 150 'default' => 5,
c3bc1eaf 151 'add' => '4.6',
6b013845 152 'title' => ts('Smart group cache timeout'),
c3bc1eaf 153 'is_domain' => 1,
154 'is_contact' => 0,
6b013845 155 'description' => ts('The number of minutes to cache smart group contacts. We strongly recommend that this value be greater than zero, since a value of zero means no caching at all. If your contact data changes frequently, you should set this value to at least 5 minutes.'),
c3bc1eaf 156 'help_text' => NULL,
dfe1f88a
CW
157 ],
158 'defaultSearchProfileID' => [
c3bc1eaf 159 'group_name' => 'Search Preferences',
160 'group' => 'Search Preferences',
161 'name' => 'defaultSearchProfileID',
c3bc1eaf 162 'type' => 'Integer',
dc378d98
TO
163 'quick_form_type' => 'Select',
164 'html_type' => 'Select',
dfe1f88a 165 'html_attributes' => [
dc378d98 166 'class' => 'crm-select2',
dfe1f88a
CW
167 ],
168 'pseudoconstant' => [
dc378d98 169 'callback' => 'CRM_Admin_Form_Setting_Search::getAvailableProfiles',
dfe1f88a 170 ],
dc378d98 171 'default' => NULL,
c3bc1eaf 172 'add' => '4.6',
6b013845 173 'title' => ts('Default Contact Search Profile'),
c3bc1eaf 174 'is_domain' => 1,
175 'is_contact' => 0,
6b013845 176 'description' => ts('If set, this will be the default profile used for contact search.'),
c3bc1eaf 177 'help_text' => NULL,
dfe1f88a
CW
178 ],
179 'prevNextBackend' => [
e28bf654
TO
180 'group_name' => 'Search Preferences',
181 'group' => 'Search Preferences',
182 'name' => 'prevNextBackend',
183 'type' => 'String',
184 'quick_form_type' => 'Select',
185 'html_type' => 'Select',
dfe1f88a 186 'html_attributes' => [
e28bf654 187 //'class' => 'crm-select2',
dfe1f88a 188 ],
e28bf654 189 'default' => 'default',
4d8899e3 190 'add' => '5.9',
6b013845 191 'title' => ts('PrevNext Cache'),
e28bf654
TO
192 'is_domain' => 1,
193 'is_contact' => 0,
dfe1f88a 194 'pseudoconstant' => [
e28bf654 195 'callback' => 'CRM_Core_BAO_PrevNextCache::getPrevNextBackends',
dfe1f88a 196 ],
6b013845 197 'description' => ts('When performing a search, how should the search-results be cached?'),
e28bf654 198 'help_text' => '',
dfe1f88a
CW
199 ],
200 'searchPrimaryDetailsOnly' => [
b3e1c09d 201 'group_name' => 'Search Preferences',
202 'group' => 'Search Preferences',
a3fccfc7 203 'name' => 'searchPrimaryDetailsOnly',
b3e1c09d 204 'type' => 'Boolean',
205 'quick_form_type' => 'YesNo',
206 'default' => 1,
207 'add' => '4.7',
6b013845 208 'title' => ts('Search Primary Details Only'),
b3e1c09d 209 'is_domain' => 1,
210 'is_contact' => 0,
6b013845 211 'description' => ts('If enabled, only primary details (eg contact\'s primary email, phone, etc) will be included in Basic and Advanced Search results. Disabling this feature will allow users to match contacts using any email, phone etc detail.'),
b3e1c09d 212 'help_text' => NULL,
dfe1f88a
CW
213 ],
214 'quicksearch_options' => [
4235341b
CW
215 'group_name' => 'Search Preferences',
216 'group' => 'Search Preferences',
217 'name' => 'quicksearch_options',
218 'type' => 'string',
219 'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
4235341b 220 'html_type' => 'checkboxes',
4e086328 221 'sortable' => TRUE,
dfe1f88a 222 'pseudoconstant' => [
4235341b 223 'callback' => 'CRM_Core_SelectValues::quicksearchOptions',
dfe1f88a
CW
224 ],
225 'default' => ['sort_name', 'contact_id', 'external_identifier', 'first_name', 'last_name', 'email', 'phone_numeric', 'street_address', 'city', 'postal_code', 'job_title'],
4235341b
CW
226 'add' => '5.8',
227 'title' => ts('Quicksearch options'),
228 'is_domain' => '1',
229 'is_contact' => 0,
230 'description' => ts("Which fields can be searched on in the menubar quicksearch box? Don't see your custom field here? Make sure it is marked as Searchable."),
231 'help_text' => NULL,
dfe1f88a
CW
232 ],
233];