protected $_settings = array(
'search_autocomplete_count' => CRM_Core_BAO_Setting::SEARCH_PREFERENCES_NAME,
- 'enable_innodb_fts' => CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME,
+ 'enable_innodb_fts' => CRM_Core_BAO_Setting::SEARCH_PREFERENCES_NAME,
);
/**
array('name'),
),
);
- $active = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'enable_innodb_fts', NULL, FALSE);
+ $active = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SEARCH_PREFERENCES_NAME, 'enable_innodb_fts', NULL, FALSE);
self::$singleton = new self($active, $indices);
}
return self::$singleton;
}
}
- if (CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'enable_innodb_fts', NULL, FALSE)) {
+ if (CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SEARCH_PREFERENCES_NAME, 'enable_innodb_fts', NULL, FALSE)) {
// The FTS indexing feature dynamically manipulates the schema which could
// cause conflicts with other layers that manipulate the schema. The
// simplest thing is to turn it off and back on.
'description' => 'When enabled, "empowered by CiviCRM" is displayed at the bottom of public forms.',
'help_text' => null,
),
- 'enable_innodb_fts' => array(
- 'group_name' => 'CiviCRM Preferences',
- 'group' => 'core',
- 'name' => 'enable_innodb_fts',
- 'prefetch' => 0,
- 'config_only'=> 0,
- 'type' => 'Boolean',
- 'quick_form_type' => 'YesNo',
- 'default' => 0,
- 'add' => '4.4',
- 'title' => 'InnoDB Full Text Search',
- 'is_domain' => 1,
- 'is_contact' => 0,
- 'description' => "Enable InnoDB full-text search optimizations. (Requires MySQL 5.6+)",
- 'help_text' => null,
- 'on_change' => array(
- array('CRM_Core_InnoDBIndexer', 'onToggleFts'),
- ),
- ),
);
'description' => 'The maximum number of contacts to show at a time when typing in an autocomplete field.',
'help_text' => null,
),
+ 'enable_innodb_fts' => array(
+ 'group_name' => 'Search Preferences',
+ 'group' => 'Search Preferences',
+ 'name' => 'enable_innodb_fts',
+ 'prefetch' => 0,
+ 'config_only'=> 0,
+ 'type' => 'Boolean',
+ 'quick_form_type' => 'YesNo',
+ 'default' => 0,
+ 'add' => '4.4',
+ 'title' => 'InnoDB Full Text Search',
+ 'is_domain' => 1,
+ 'is_contact' => 0,
+ 'description' => "Enable InnoDB full-text search optimizations. (Requires MySQL 5.6+)",
+ 'help_text' => null,
+ 'on_change' => array(
+ array('CRM_Core_InnoDBIndexer', 'onToggleFts'),
+ ),
+ ),
'fts_query_mode' => array(
'group_name' => 'Search Preferences',
'group' => 'Search Preferences',