35 var
$object_types = array(
'cat',
'dbk',
'crs',
'fold',
'grp',
'lm',
'sahs',
'glo',
'mep',
'htlm',
'exc',
'file',
'qpl',
'tst',
'svy',
'spl',
'icrs',
'icla',
'webr',
'mcst',
'sess',
'pg',
'st',
'book');
48 $this->query_parser =& $qp_obj;
51 include_once
'Services/Search/classes/class.ilSearchResult.php';
63 $this->fields = $a_fields;
73 return $this->fields ? $this->fields : array();
83 if(is_array($a_filter))
85 $this->object_types = $a_filter;
96 $this->id_filter = $a_id_filter;
115 if(is_array($this->object_types))
117 if(in_array($a_type,$this->object_types))
122 $this->object_types[] = $a_type;
135 return $this->object_types ? $this->object_types : array();
147 if($this->query_parser->getCombination() ==
'or')
151 if(count($this->fields) > 1)
153 foreach($this->fields as $field)
155 $tmp_fields[] = array($field,
'text');
157 $complete_str = $ilDB->concat($tmp_fields);
167 $complete_str = $this->fields[0];
171 foreach($this->query_parser->getQuotedWords() as $word)
174 $locate .= $ilDB->locate($ilDB->quote($word,
'text'),$complete_str);
175 $locate .= (
' found'.$counter++);
177 #$locate .= (", LOCATE('".$word."',".$complete_str.") ");
178 #$locate .= ("as found".$counter++." ");
186 if($this->query_parser->getCombination() ==
'or')
191 foreach($this->query_parser->getQuotedWords() as $word)
193 $res_found =
"found".$counter++;
194 $found[] =
$row->$res_found;
196 return $found ? $found : array();
201 echo
"Should be overwritten.";