33 include_once
'Services/Search/classes/class.ilAbstractSearch.php';
60 $this->definition = $a_def;
88 $and =
"AND type IN ('".implode(
"','",$this->
getFilter()).
"')";
96 $query =
"SELECT amv.obj_id,type ".
97 "FROM adv_md_values AS amv ".
98 "JOIN object_data USING (obj_id) ".
99 "WHERE value >= ".(int) $this->range_start.
" ".
100 "AND value <= ".(int) $this->range_end.
" ".
101 "AND field_id = ".$this->db->quote($this->
getDefinition()->getFieldId()).
" ".
107 $where = $this->__createWhereCondition();
110 $query =
"SELECT amv.obj_id,type ".
112 "FROM adv_md_values as amv ".
113 "JOIN object_data USING(obj_id) ".
115 "AND field_id = ".$this->db->quote($this->
getDefinition()->getFieldId()).
" ".
123 $res = $this->db->query($query);
126 $this->search_result->addEntry($row->obj_id,$row->type,$this->__prepareFound($row));
142 $this->range_start = $start;
143 $this->range_end = $end;