Merge pull request #15384 from mattwire/membership_updaterecur
[civicrm-core.git] / settings / Search.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
fee14197 4 | CiviCRM version 5 |
6a488035 5 +--------------------------------------------------------------------+
6b83d5bd 6 | Copyright CiviCRM LLC (c) 2004-2019 |
6a488035
TO
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
9 | |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU Affero General Public |
20 | License and the CiviCRM Licensing Exception along |
21 | with this program; if not, contact CiviCRM LLC |
22 | at info[AT]civicrm[DOT]org. If you have questions about the |
23 | GNU Affero General Public License or the licensing of CiviCRM, |
24 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
25 +--------------------------------------------------------------------+
d25dd0ee 26 */
6a488035
TO
27
28/**
29 *
30 * @package CRM
6b83d5bd 31 * @copyright CiviCRM LLC (c) 2004-2019
6a488035
TO
32 * $Id$
33 *
34 */
35/*
36 * Settings metadata file
37 */
dfe1f88a
CW
38return [
39 'search_autocomplete_count' => [
6a488035
TO
40 'group_name' => 'Search Preferences',
41 'group' => 'Search Preferences',
42 'name' => 'search_autocomplete_count',
6a488035
TO
43 'type' => 'Integer',
44 'quick_form_type' => 'Element',
bfd9c358 45 'html_type' => 'number',
6a488035
TO
46 'default' => 10,
47 'add' => '4.3',
48 'title' => 'Autocomplete Results',
49 'is_domain' => 1,
50 'is_contact' => 0,
51 'description' => 'The maximum number of contacts to show at a time when typing in an autocomplete field.',
08e57c58 52 'help_text' => NULL,
dfe1f88a
CW
53 ],
54 'enable_innodb_fts' => [
56c2750b
TO
55 'group_name' => 'Search Preferences',
56 'group' => 'Search Preferences',
57 'name' => 'enable_innodb_fts',
56c2750b
TO
58 'type' => 'Boolean',
59 'quick_form_type' => 'YesNo',
60 'default' => 0,
61 'add' => '4.4',
62 'title' => 'InnoDB Full Text Search',
63 'is_domain' => 1,
64 'is_contact' => 0,
65 'description' => "Enable InnoDB full-text search optimizations. (Requires MySQL 5.6+)",
08e57c58 66 'help_text' => NULL,
dfe1f88a
CW
67 'on_change' => [
68 ['CRM_Core_InnoDBIndexer', 'onToggleFts'],
69 ],
70 ],
71 'fts_query_mode' => [
7d1b110a
TO
72 'group_name' => 'Search Preferences',
73 'group' => 'Search Preferences',
74 'name' => 'fts_query_mode',
7d1b110a
TO
75 'type' => 'String',
76 'quick_form_type' => 'Element',
dfe1f88a 77 'html_attributes' => [
7d1b110a
TO
78 'size' => 64,
79 'maxlength' => 64,
dfe1f88a 80 ],
c1a2145a 81 'html_type' => 'text',
7d1b110a
TO
82 'default' => 'simple',
83 'add' => '4.5',
84 'title' => 'How to handle full-tet queries',
85 'is_domain' => 1,
86 'is_contact' => 0,
08e57c58
TO
87 'description' => NULL,
88 'help_text' => NULL,
dfe1f88a
CW
89 ],
90 'includeOrderByClause' => [
08f4ab8d 91 'group_name' => 'Search Preferences',
92 'group' => 'Search Preferences',
93 'name' => 'includeOrderByClause',
08f4ab8d 94 'type' => 'Boolean',
95 'quick_form_type' => 'YesNo',
96 'default' => 1,
97 'add' => '4.6',
98 'title' => 'Include Order By Clause',
99 'is_domain' => 1,
100 'is_contact' => 0,
101 'description' => 'If disabled, the search results will not be ordered. This may improve response time on search results on large datasets',
102 'help_text' => NULL,
dfe1f88a
CW
103 ],
104 'includeWildCardInName' => [
c3bc1eaf 105 'group_name' => 'Search Preferences',
106 'group' => 'Search Preferences',
107 'name' => 'includeWildCardInName',
c3bc1eaf 108 'type' => 'Boolean',
109 'quick_form_type' => 'YesNo',
110 'default' => 1,
111 'add' => '4.6',
112 'title' => 'Automatic Wildcard',
113 'is_domain' => 1,
114 'is_contact' => 0,
115 'description' => "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'.",
116 'help_text' => NULL,
dfe1f88a
CW
117 ],
118 'includeEmailInName' => [
c3bc1eaf 119 'group_name' => 'Search Preferences',
120 'group' => 'Search Preferences',
121 'name' => 'includeEmailInName',
c3bc1eaf 122 'type' => 'Boolean',
123 'quick_form_type' => 'YesNo',
124 'default' => 1,
125 'add' => '4.6',
126 'title' => 'Include Email',
127 'is_domain' => 1,
128 'is_contact' => 0,
129 'description' => '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.',
130 'help_text' => NULL,
dfe1f88a
CW
131 ],
132 'includeNickNameInName' => [
c3bc1eaf 133 'group_name' => 'Search Preferences',
134 'group' => 'Search Preferences',
135 'name' => 'includeNickNameInName',
c3bc1eaf 136 'type' => 'Boolean',
137 'quick_form_type' => 'YesNo',
dc378d98 138 'default' => 0,
c3bc1eaf 139 'add' => '4.6',
140 'title' => 'Include Nickname',
141 'is_domain' => 1,
142 'is_contact' => 0,
143 'description' => 'If enabled, nicknames are automatically included when users search by Name.',
144 'help_text' => NULL,
dfe1f88a
CW
145 ],
146 'includeAlphabeticalPager' => [
c3bc1eaf 147 'group_name' => 'Search Preferences',
148 'group' => 'Search Preferences',
149 'name' => 'includeAlphabeticalPager',
c3bc1eaf 150 'type' => 'Boolean',
151 'quick_form_type' => 'YesNo',
152 'default' => 1,
153 'add' => '4.6',
154 'title' => 'Include Alphabetical Pager',
155 'is_domain' => 1,
156 'is_contact' => 0,
157 'description' => 'If disabled, the alphabetical pager will not be displayed on the search screens. This will improve response time on search results on large datasets.',
158 'help_text' => NULL,
dfe1f88a
CW
159 ],
160 'smartGroupCacheTimeout' => [
c3bc1eaf 161 'group_name' => 'Search Preferences',
162 'group' => 'Search Preferences',
163 'name' => 'smartGroupCacheTimeout',
c3bc1eaf 164 'type' => 'Integer',
dc378d98 165 'quick_form_type' => 'Element',
bfd9c358 166 'html_type' => 'number',
dc378d98 167 'default' => 5,
c3bc1eaf 168 'add' => '4.6',
169 'title' => 'Smart group cache timeout',
170 'is_domain' => 1,
171 'is_contact' => 0,
172 'description' => '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.',
173 'help_text' => NULL,
dfe1f88a
CW
174 ],
175 'defaultSearchProfileID' => [
c3bc1eaf 176 'group_name' => 'Search Preferences',
177 'group' => 'Search Preferences',
178 'name' => 'defaultSearchProfileID',
c3bc1eaf 179 'type' => 'Integer',
dc378d98
TO
180 'quick_form_type' => 'Select',
181 'html_type' => 'Select',
dfe1f88a 182 'html_attributes' => [
dc378d98 183 'class' => 'crm-select2',
dfe1f88a
CW
184 ],
185 'pseudoconstant' => [
dc378d98 186 'callback' => 'CRM_Admin_Form_Setting_Search::getAvailableProfiles',
dfe1f88a 187 ],
dc378d98 188 'default' => NULL,
c3bc1eaf 189 'add' => '4.6',
190 'title' => 'Default Contact Search Profile',
191 'is_domain' => 1,
192 'is_contact' => 0,
193 'description' => 'If set, this will be the default profile used for contact search.',
194 'help_text' => NULL,
dfe1f88a
CW
195 ],
196 'prevNextBackend' => [
e28bf654
TO
197 'group_name' => 'Search Preferences',
198 'group' => 'Search Preferences',
199 'name' => 'prevNextBackend',
200 'type' => 'String',
201 'quick_form_type' => 'Select',
202 'html_type' => 'Select',
dfe1f88a 203 'html_attributes' => [
e28bf654 204 //'class' => 'crm-select2',
dfe1f88a 205 ],
e28bf654 206 'default' => 'default',
4d8899e3 207 'add' => '5.9',
e28bf654
TO
208 'title' => 'PrevNext Cache',
209 'is_domain' => 1,
210 'is_contact' => 0,
dfe1f88a 211 'pseudoconstant' => [
e28bf654 212 'callback' => 'CRM_Core_BAO_PrevNextCache::getPrevNextBackends',
dfe1f88a 213 ],
e28bf654
TO
214 'description' => 'When performing a search, how should the search-results be cached?',
215 'help_text' => '',
dfe1f88a
CW
216 ],
217 'searchPrimaryDetailsOnly' => [
b3e1c09d 218 'group_name' => 'Search Preferences',
219 'group' => 'Search Preferences',
a3fccfc7 220 'name' => 'searchPrimaryDetailsOnly',
b3e1c09d 221 'type' => 'Boolean',
222 'quick_form_type' => 'YesNo',
223 'default' => 1,
224 'add' => '4.7',
0e4873ff 225 'title' => 'Search Primary Details Only',
b3e1c09d 226 'is_domain' => 1,
227 'is_contact' => 0,
0e4873ff 228 'description' => '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 229 'help_text' => NULL,
dfe1f88a
CW
230 ],
231 'quicksearch_options' => [
4235341b
CW
232 'group_name' => 'Search Preferences',
233 'group' => 'Search Preferences',
234 'name' => 'quicksearch_options',
235 'type' => 'string',
236 'serialize' => CRM_Core_DAO::SERIALIZE_SEPARATOR_BOOKEND,
4235341b 237 'html_type' => 'checkboxes',
4e086328 238 'sortable' => TRUE,
dfe1f88a 239 'pseudoconstant' => [
4235341b 240 'callback' => 'CRM_Core_SelectValues::quicksearchOptions',
dfe1f88a
CW
241 ],
242 'default' => ['sort_name', 'contact_id', 'external_identifier', 'first_name', 'last_name', 'email', 'phone_numeric', 'street_address', 'city', 'postal_code', 'job_title'],
4235341b
CW
243 'add' => '5.8',
244 'title' => ts('Quicksearch options'),
245 'is_domain' => '1',
246 'is_contact' => 0,
247 '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."),
248 'help_text' => NULL,
dfe1f88a
CW
249 ],
250];