67 if(self::$instance == null)
71 return self::$instance;
82 'crs' =>
array(
'filter' =>
'type:crs',
'trans' =>
'objs_crs'),
83 'grp' =>
array(
'filter' =>
'type:grp',
'trans' =>
'objs_grp'),
84 'lms' =>
array(
'filter' =>
'type:lm OR type:htlm OR type:sahs OR type:dbk',
'trans' =>
'learning_resource'),
85 'glo' =>
array(
'filter' =>
'type:glo',
'trans' =>
'objs_glo'),
86 'mep' =>
array(
'filter' =>
'type:mep',
'trans' =>
'objs_mep'),
87 'tst' =>
array(
'filter' =>
'type:tst OR type:svy OR type:qpl OR type:spl',
'trans' =>
'search_tst_svy'),
88 'frm' =>
array(
'filter' =>
'type:frm',
'trans' =>
'objs_frm'),
89 'exc' =>
array(
'filter' =>
'type:exc',
'trans' =>
'objs_exc'),
90 'file' =>
array(
'filter' =>
'type:file',
'trans' =>
'objs_file'),
91 'mcst' =>
array(
'filter' =>
'type:mcst',
'trans' =>
'objs_mcst'),
92 'wiki' =>
array(
'filter' =>
'type:wiki',
'trans' =>
'objs_wiki')
99 'pdf' =>
array(
'filter' =>
'mimeType:pdf',
'trans' =>
'search_mime_pdf'),
100 'word' =>
array(
'filter' =>
'mimeType:word',
'trans' =>
'search_mime_word'),
101 'excel' =>
array(
'filter' =>
'mimeType:excel',
'trans' =>
'search_mime_excel'),
102 'powerpoint' =>
array(
'filter' =>
'mimeType:powerpoint',
'trans' =>
'search_mime_powerpoint'),
103 'image' =>
array(
'filter' =>
'mimeType:image',
'trans' =>
'search_mime_image')
121 foreach(self::getLuceneItemFilterDefinitions() as $obj => $def)
123 if(isset($filter[$obj])
and $filter[$obj])
125 $enabled[$obj] = $def;
141 foreach(self::getLuceneMimeFilterDefinitions() as $mime => $def)
143 if(isset($filter[$mime])
and $filter[$mime])
145 $enabled[$mime] = $def;
153 $this->prefix_wildcard = $a_stat;
172 static $seas_ref_id = 0;
178 $query =
"SELECT object_reference.ref_id as ref_id FROM object_reference,tree,object_data ".
179 "WHERE tree.parent = ".$ilDB->quote(SYSTEM_FOLDER_ID,
'integer').
" ".
180 "AND object_data.type = 'seas' ".
181 "AND object_reference.ref_id = tree.child ".
182 "AND object_reference.obj_id = object_data.obj_id";
187 return $seas_ref_id =
$row->ref_id;
194 if($ilDB->getDBType() ==
'oracle')
198 return $this->index ? true :
false;
202 $this->index = $a_status;
206 return $this->lucene ? true :
false;
210 $this->lucene = $a_status ? true :
false;
219 $this->max_hits = $a_max_hits;
229 $this->default_operator = $a_op;
234 $this->fragmentSize = $a_size;
244 $this->fragmentCount = $a_count;
249 return $this->hide_adv_search ? true :
false;
253 $this->hide_adv_search = $a_status;
271 $this->numSubitems = $a_max;
291 return $this->last_index_date instanceof
ilDateTime ?
292 $this->last_index_date :
298 $this->lucene_item_filter_enabled = $a_status;
314 $this->lucene_item_filter = $a_filter;
319 $this->lucene_offline_filter = $a_stat;
340 $this->lucene_mime_filter = $a_filter;
362 $this->lucene_mime_filter_enabled = $a_stat;
371 $this->last_index_date = $time;
389 $this->user_search = $a_status;
399 $this->show_inactiv_user = (bool) $a_visible;
419 $this->show_limited_user = (bool) $a_visible;
439 $this->date_filter = $a_filter;
489 if($time = $this->
ilias->getSetting(
'lucene_last_index_time',
false))
507 $this->
enableLuceneMimeFilter($ilSetting->get(
'lucene_mime_filter_enabled',$this->lucene_item_filter_enabled));
514 $this->
showInactiveUser($ilSetting->get(
'search_show_inactiv_user', $this->show_inactiv_user));
515 $this->
showLimitedUser($ilSetting->get(
'search_show_limited_user', $this->show_limited_user));
517 $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()
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()