Settings - Remove special cases for `prefetch` and `config_only`
[civicrm-core.git] / settings / Search.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
81621fee 4 | CiviCRM version 4.7 |
6a488035 5 +--------------------------------------------------------------------+
e7112fa7 6 | Copyright CiviCRM LLC (c) 2004-2015 |
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
e7112fa7 31 * @copyright CiviCRM LLC (c) 2004-2015
6a488035
TO
32 * $Id$
33 *
34 */
35/*
36 * Settings metadata file
37 */
08e57c58 38return array(
6a488035
TO
39 'search_autocomplete_count' => array(
40 'group_name' => 'Search Preferences',
41 'group' => 'Search Preferences',
42 'name' => 'search_autocomplete_count',
6a488035
TO
43 'type' => 'Integer',
44 'quick_form_type' => 'Element',
45 'html_type' => 'text',
46 'html_attributes' => array(
47 'size' => 2,
48 'maxlength' => 2,
49 ),
50 'default' => 10,
51 'add' => '4.3',
52 'title' => 'Autocomplete Results',
53 'is_domain' => 1,
54 'is_contact' => 0,
55 'description' => 'The maximum number of contacts to show at a time when typing in an autocomplete field.',
08e57c58 56 'help_text' => NULL,
6a488035 57 ),
56c2750b
TO
58 'enable_innodb_fts' => array(
59 'group_name' => 'Search Preferences',
60 'group' => 'Search Preferences',
61 'name' => 'enable_innodb_fts',
56c2750b
TO
62 'type' => 'Boolean',
63 'quick_form_type' => 'YesNo',
64 'default' => 0,
65 'add' => '4.4',
66 'title' => 'InnoDB Full Text Search',
67 'is_domain' => 1,
68 'is_contact' => 0,
69 'description' => "Enable InnoDB full-text search optimizations. (Requires MySQL 5.6+)",
08e57c58 70 'help_text' => NULL,
56c2750b
TO
71 'on_change' => array(
72 array('CRM_Core_InnoDBIndexer', 'onToggleFts'),
73 ),
74 ),
7d1b110a
TO
75 'fts_query_mode' => array(
76 'group_name' => 'Search Preferences',
77 'group' => 'Search Preferences',
78 'name' => 'fts_query_mode',
7d1b110a
TO
79 'type' => 'String',
80 'quick_form_type' => 'Element',
7d1b110a
TO
81 'html_attributes' => array(
82 'size' => 64,
83 'maxlength' => 64,
84 ),
85 'html_type' => 'Text',
86 'default' => 'simple',
87 'add' => '4.5',
88 'title' => 'How to handle full-tet queries',
89 'is_domain' => 1,
90 'is_contact' => 0,
08e57c58
TO
91 'description' => NULL,
92 'help_text' => NULL,
7d1b110a 93 ),
08f4ab8d 94 'includeOrderByClause' => array(
95 'group_name' => 'Search Preferences',
96 'group' => 'Search Preferences',
97 'name' => 'includeOrderByClause',
08f4ab8d 98 'type' => 'Boolean',
99 'quick_form_type' => 'YesNo',
100 'default' => 1,
101 'add' => '4.6',
102 'title' => 'Include Order By Clause',
103 'is_domain' => 1,
104 'is_contact' => 0,
105 'description' => 'If disabled, the search results will not be ordered. This may improve response time on search results on large datasets',
106 'help_text' => NULL,
107 ),
c3bc1eaf 108 'includeWildCardInName' => array(
109 'group_name' => 'Search Preferences',
110 'group' => 'Search Preferences',
111 'name' => 'includeWildCardInName',
c3bc1eaf 112 'type' => 'Boolean',
113 'quick_form_type' => 'YesNo',
114 'default' => 1,
115 'add' => '4.6',
116 'title' => 'Automatic Wildcard',
117 'is_domain' => 1,
118 'is_contact' => 0,
119 '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'.",
120 'help_text' => NULL,
121 ),
122 'includeEmailInName' => array(
123 'group_name' => 'Search Preferences',
124 'group' => 'Search Preferences',
125 'name' => 'includeEmailInName',
c3bc1eaf 126 'type' => 'Boolean',
127 'quick_form_type' => 'YesNo',
128 'default' => 1,
129 'add' => '4.6',
130 'title' => 'Include Email',
131 'is_domain' => 1,
132 'is_contact' => 0,
133 '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.',
134 'help_text' => NULL,
135 ),
136 'includeNickNameInName' => array(
137 'group_name' => 'Search Preferences',
138 'group' => 'Search Preferences',
139 'name' => 'includeNickNameInName',
c3bc1eaf 140 'type' => 'Boolean',
141 'quick_form_type' => 'YesNo',
dc378d98 142 'default' => 0,
c3bc1eaf 143 'add' => '4.6',
144 'title' => 'Include Nickname',
145 'is_domain' => 1,
146 'is_contact' => 0,
147 'description' => 'If enabled, nicknames are automatically included when users search by Name.',
148 'help_text' => NULL,
149 ),
150 'includeAlphabeticalPager' => array(
151 'group_name' => 'Search Preferences',
152 'group' => 'Search Preferences',
153 'name' => 'includeAlphabeticalPager',
c3bc1eaf 154 'type' => 'Boolean',
155 'quick_form_type' => 'YesNo',
156 'default' => 1,
157 'add' => '4.6',
158 'title' => 'Include Alphabetical Pager',
159 'is_domain' => 1,
160 'is_contact' => 0,
161 '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.',
162 'help_text' => NULL,
163 ),
164 'smartGroupCacheTimeout' => array(
165 'group_name' => 'Search Preferences',
166 'group' => 'Search Preferences',
167 'name' => 'smartGroupCacheTimeout',
c3bc1eaf 168 'type' => 'Integer',
dc378d98
TO
169 'quick_form_type' => 'Element',
170 'html_type' => 'text',
171 'default' => 5,
c3bc1eaf 172 'add' => '4.6',
173 'title' => 'Smart group cache timeout',
174 'is_domain' => 1,
175 'is_contact' => 0,
176 '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.',
177 'help_text' => NULL,
178 ),
179 'defaultSearchProfileID' => array(
180 'group_name' => 'Search Preferences',
181 'group' => 'Search Preferences',
182 'name' => 'defaultSearchProfileID',
c3bc1eaf 183 'type' => 'Integer',
dc378d98
TO
184 'quick_form_type' => 'Select',
185 'html_type' => 'Select',
186 'html_attributes' => array(
187 'class' => 'crm-select2',
188 ),
189 'pseudoconstant' => array(
190 'callback' => 'CRM_Admin_Form_Setting_Search::getAvailableProfiles',
191 ),
192 'default' => NULL,
c3bc1eaf 193 'add' => '4.6',
194 'title' => 'Default Contact Search Profile',
195 'is_domain' => 1,
196 'is_contact' => 0,
197 'description' => 'If set, this will be the default profile used for contact search.',
198 'help_text' => NULL,
199 ),
6a488035 200);