63 if(self::$instance == null)
67 return self::$instance;
78 'crs' => array(
'filter' =>
'type:crs',
'trans' =>
'objs_crs'),
79 'grp' => array(
'filter' =>
'type:grp',
'trans' =>
'objs_grp'),
80 'lms' => array(
'filter' =>
'type:lm OR type:htlm OR type:sahs OR type:dbk',
'trans' =>
'learning_resource'),
81 'glo' => array(
'filter' =>
'type:glo',
'trans' =>
'objs_glo'),
82 'mep' => array(
'filter' =>
'type:mep',
'trans' =>
'objs_mep'),
83 'tst' => array(
'filter' =>
'type:tst OR type:svy OR type:qpl OR type:spl',
'trans' =>
'search_tst_svy'),
84 'frm' => array(
'filter' =>
'type:frm',
'trans' =>
'objs_frm'),
85 'exc' => array(
'filter' =>
'type:exc',
'trans' =>
'objs_exc'),
86 'file' => array(
'filter' =>
'type:file',
'trans' =>
'objs_file'),
87 'mcst' => array(
'filter' =>
'type:mcst',
'trans' =>
'objs_mcst'),
88 'wiki' => array(
'filter' =>
'type:wiki',
'trans' =>
'objs_wiki')
95 'pdf' => array(
'filter' =>
'mimeType:pdf',
'trans' =>
'search_mime_pdf'),
96 'word' => array(
'filter' =>
'mimeType:word',
'trans' =>
'search_mime_word'),
97 'excel' => array(
'filter' =>
'mimeType:excel',
'trans' =>
'search_mime_excel'),
98 'powerpoint' => array(
'filter' =>
'mimeType:powerpoint',
'trans' =>
'search_mime_powerpoint'),
99 'image' => array(
'filter' =>
'mimeType:image',
'trans' =>
'search_mime_image')
117 foreach(self::getLuceneItemFilterDefinitions() as $obj => $def)
119 if(isset($filter[$obj]) and $filter[$obj])
121 $enabled[$obj] = $def;
137 foreach(self::getLuceneMimeFilterDefinitions() as $mime => $def)
139 if(isset($filter[$mime]) and $filter[$mime])
141 $enabled[$mime] = $def;
149 $this->prefix_wildcard = $a_stat;
168 static $seas_ref_id = 0;
174 $query =
"SELECT object_reference.ref_id as ref_id FROM object_reference,tree,object_data ".
175 "WHERE tree.parent = ".$ilDB->quote(SYSTEM_FOLDER_ID,
'integer').
" ".
176 "AND object_data.type = 'seas' ".
177 "AND object_reference.ref_id = tree.child ".
178 "AND object_reference.obj_id = object_data.obj_id";
183 return $seas_ref_id =
$row->ref_id;
190 if($ilDB->getDBType() ==
'oracle')
194 return $this->index ? true :
false;
198 $this->index = $a_status;
202 return $this->lucene ? true :
false;
206 $this->lucene = $a_status ? true :
false;
215 $this->max_hits = $a_max_hits;
225 $this->default_operator = $a_op;
230 $this->fragmentSize = $a_size;
240 $this->fragmentCount = $a_count;
245 return $this->hide_adv_search ? true :
false;
249 $this->hide_adv_search = $a_status;
267 $this->numSubitems = $a_max;
287 return $this->last_index_date instanceof
ilDateTime ?
288 $this->last_index_date :
294 $this->lucene_item_filter_enabled = $a_status;
310 $this->lucene_item_filter = $a_filter;
315 $this->lucene_offline_filter = $a_stat;
336 $this->lucene_mime_filter = $a_filter;
358 $this->lucene_mime_filter_enabled = $a_stat;
367 $this->last_index_date = $time;
385 $this->user_search = $a_status;
431 if($time = $this->
ilias->getSetting(
'lucene_last_index_time',
false))
449 $this->
enableLuceneMimeFilter($ilSetting->get(
'lucene_mime_filter_enabled',$this->lucene_item_filter_enabled));
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
setFragmentCount($a_count)
enableLuceneOfflineFilter($a_stat)
getEnabledLuceneItemFilterDefinitions()
Get lucene item filter definitions.
setAutoCompleteLength($auto_complete_length)
isLuceneItemFilterEnabled()
const DB_FETCHMODE_OBJECT
getEnabledLuceneMimeFilterDefinitions()
showSubRelevance($a_stat)
static getLuceneMimeFilterDefinitions()
redirection script todo: (a better solution should control the processing via a xml file) ...
enableLuceneMimeFilter($a_stat)
Enable lucene mime filter.
enablePrefixWildcardQuery($a_stat)
setDefaultOperator($a_op)
isLuceneUserSearchEnabled()
Check if user search is enabled.
enableLuceneUserSearch($a_status)
Enable lucene user search.
$lucene_mime_filter_enabled
isLuceneOfflineFilterEnabled()
_getSearchSettingRefId()
Read the ref_id of Search Settings object.
isPrefixWildcardQueryEnabled()