67 if (self::$instance == null) {
70 return self::$instance;
81 'crs' =>
array(
'filter' =>
'type:crs',
'trans' =>
'objs_crs'),
82 'grp' =>
array(
'filter' =>
'type:grp',
'trans' =>
'objs_grp'),
83 'lms' =>
array(
'filter' =>
'type:lm OR type:htlm OR type:sahs OR type:dbk',
'trans' =>
'learning_resource'),
84 'glo' =>
array(
'filter' =>
'type:glo',
'trans' =>
'objs_glo'),
85 'mep' =>
array(
'filter' =>
'type:mep',
'trans' =>
'objs_mep'),
86 'tst' =>
array(
'filter' =>
'type:tst OR type:svy OR type:qpl OR type:spl',
'trans' =>
'search_tst_svy'),
87 'frm' =>
array(
'filter' =>
'type:frm',
'trans' =>
'objs_frm'),
88 'exc' =>
array(
'filter' =>
'type:exc',
'trans' =>
'objs_exc'),
89 'file' =>
array(
'filter' =>
'type:file',
'trans' =>
'objs_file'),
90 'mcst' =>
array(
'filter' =>
'type:mcst',
'trans' =>
'objs_mcst'),
91 'wiki' =>
array(
'filter' =>
'type:wiki',
'trans' =>
'objs_wiki')
98 'pdf' =>
array(
'filter' =>
'mimeType:pdf',
'trans' =>
'search_mime_pdf'),
99 'word' =>
array(
'filter' =>
'mimeType:word',
'trans' =>
'search_mime_word'),
100 'excel' =>
array(
'filter' =>
'mimeType:excel',
'trans' =>
'search_mime_excel'),
101 'powerpoint' =>
array(
'filter' =>
'mimeType:powerpoint',
'trans' =>
'search_mime_powerpoint'),
102 'image' =>
array(
'filter' =>
'mimeType:image',
'trans' =>
'search_mime_image')
119 foreach (self::getLuceneItemFilterDefinitions() as $obj =>
$def) {
120 if (isset($filter[$obj]) and $filter[$obj]) {
121 $enabled[$obj] =
$def;
136 foreach (self::getLuceneMimeFilterDefinitions() as $mime =>
$def) {
137 if (isset($filter[$mime]) and $filter[$mime]) {
138 $enabled[$mime] =
$def;
146 $this->prefix_wildcard = $a_stat;
165 static $seas_ref_id = 0;
170 $query =
"SELECT object_reference.ref_id as ref_id FROM object_reference,tree,object_data " .
171 "WHERE tree.parent = " . $ilDB->quote(SYSTEM_FOLDER_ID,
'integer') .
" " .
172 "AND object_data.type = 'seas' " .
173 "AND object_reference.ref_id = tree.child " .
174 "AND object_reference.obj_id = object_data.obj_id";
179 return $seas_ref_id =
$row->ref_id;
186 if ($ilDB->getDBType() ==
'oracle') {
189 return $this->index ? true :
false;
193 $this->index = $a_status;
197 return $this->lucene ? true :
false;
201 $this->lucene = $a_status ? true :
false;
210 $this->max_hits = $a_max_hits;
220 $this->default_operator = $a_op;
225 $this->fragmentSize = $a_size;
235 $this->fragmentCount = $a_count;
240 return $this->hide_adv_search ? true :
false;
244 $this->hide_adv_search = $a_status;
262 $this->numSubitems = $a_max;
282 return $this->last_index_date instanceof
ilDateTime ?
283 $this->last_index_date :
289 $this->lucene_item_filter_enabled = $a_status;
305 $this->lucene_item_filter = $a_filter;
310 $this->lucene_offline_filter = $a_stat;
331 $this->lucene_mime_filter = $a_filter;
353 $this->lucene_mime_filter_enabled = $a_stat;
362 $this->last_index_date =
$time;
380 $this->user_search = $a_status;
390 $this->show_inactiv_user = (bool) $a_visible;
410 $this->show_limited_user = (bool) $a_visible;
430 $this->date_filter = $a_filter;
480 if (
$time = $this->
ilias->getSetting(
'lucene_last_index_time',
false)) {
495 $this->
enableLuceneMimeFilter($ilSetting->get(
'lucene_mime_filter_enabled', $this->lucene_item_filter_enabled));
502 $this->
showInactiveUser($ilSetting->get(
'search_show_inactiv_user', $this->show_inactiv_user));
503 $this->
showLimitedUser($ilSetting->get(
'search_show_limited_user', $this->show_limited_user));
505 $this->
enableDateFilter($ilSetting->get(
'search_date_filter', $this->date_filter));
enableLuceneItemFilter($a_status)
isLuceneMimeFilterEnabled()
Check if lucene mime filter is enabled.
static getLuceneItemFilterDefinitions()
Get lucene item filter definitions.
setLuceneItemFilter($a_filter)
setLuceneMimeFilter($a_filter)
setHideAdvancedSearch($a_status)
$lucene_item_filter_enabled
isInactiveUserVisible()
are inactive user visible in user search
setFragmentCount($a_count)
enableLuceneOfflineFilter($a_stat)
getEnabledLuceneItemFilterDefinitions()
Get lucene item filter definitions.
setAutoCompleteLength($auto_complete_length)
isLuceneItemFilterEnabled()
getEnabledLuceneMimeFilterDefinitions()
showSubRelevance($a_stat)
static getLuceneMimeFilterDefinitions()
foreach($_POST as $key=> $value) $res
static _getSearchSettingRefId()
Read the ref_id of Search Settings object.
enableDateFilter($a_filter)
redirection script todo: (a better solution should control the processing via a xml file) ...
isLimitedUserVisible()
are user with limited access visible in user search
enableLuceneMimeFilter($a_stat)
Enable lucene mime filter.
showLimitedUser($a_visible)
show user with limited access in user search
Create styles array
The data for the language used.
enablePrefixWildcardQuery($a_stat)
setDefaultOperator($a_op)
showInactiveUser($a_visible)
show inactive user in user search
isLuceneUserSearchEnabled()
Check if user search is enabled.
enableLuceneUserSearch($a_status)
Enable lucene user search.
$lucene_mime_filter_enabled
isLuceneOfflineFilterEnabled()
isPrefixWildcardQueryEnabled()