Public Member Functions | |
ilFulltextTestSearch (&$qp_obj) | |
Constructor public. | |
__createWhereCondition ($a_field_str) |
Definition at line 37 of file class.ilFulltextTestSearch.php.
ilFulltextTestSearch::__createWhereCondition | ( | $ | a_field_str | ) |
Definition at line 49 of file class.ilFulltextTestSearch.php.
References $query.
{ // IN BOOLEAN MODE if($this->db->isMysql4_0OrHigher()) { $query .= " WHERE MATCH(".$a_field_str.") AGAINST('"; foreach($this->query_parser->getQuotedWords(true) as $word) { $query .= $word; $query .= '* '; } $query .= "' IN BOOLEAN MODE) "; } else { // i do not see any reason, but MATCH AGAINST(...) OR MATCH AGAINST(...) does not use an index $query .= " WHERE MATCH (".$a_field_str.") AGAINST(' "; foreach($this->query_parser->getQuotedWords(true) as $word) { $query .= $word; $query .= ' '; } $query .= "') "; } return $query; }
ilFulltextTestSearch::ilFulltextTestSearch | ( | &$ | qp_obj | ) |
Constructor public.
Definition at line 44 of file class.ilFulltextTestSearch.php.
References ilTestSearch::ilTestSearch().
{ parent::ilTestSearch($qp_obj); }