ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilFulltextMetaDataSearch Class Reference
+ Inheritance diagram for ilFulltextMetaDataSearch:
+ Collaboration diagram for ilFulltextMetaDataSearch:

Public Member Functions

 ilFulltextMetaDataSearch (&$qp_obj)
 Constructor public.
 __createKeywordWhereCondition ()
 __createContributeWhereCondition ()
 __createTitleWhereCondition ()
 __createDescriptionWhereCondition ()

Detailed Description

Definition at line 37 of file class.ilFulltextMetaDataSearch.php.

Member Function Documentation

ilFulltextMetaDataSearch::__createContributeWhereCondition ( )

Definition at line 76 of file class.ilFulltextMetaDataSearch.php.

References $query.

{
// IN BOOLEAN MODE
if($this->db->isMysql4_0OrHigher())
{
$query .= " WHERE MATCH(entity) 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 (entity) AGAINST(' ";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= ' ';
}
$query .= "') ";
}
return $query;
}
ilFulltextMetaDataSearch::__createDescriptionWhereCondition ( )

Definition at line 128 of file class.ilFulltextMetaDataSearch.php.

References $query.

{
// IN BOOLEAN MODE
if($this->db->isMysql4_0OrHigher())
{
$query .= " WHERE MATCH(description) 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 (description) AGAINST(' ";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= ' ';
}
$query .= "') ";
}
return $query;
}
ilFulltextMetaDataSearch::__createKeywordWhereCondition ( )

Definition at line 50 of file class.ilFulltextMetaDataSearch.php.

References $query.

{
// IN BOOLEAN MODE
if($this->db->isMysql4_0OrHigher())
{
$query .= " WHERE MATCH(keyword) 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 (keyword) AGAINST(' ";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= ' ';
}
$query .= "') ";
}
return $query;
}
ilFulltextMetaDataSearch::__createTitleWhereCondition ( )

Definition at line 102 of file class.ilFulltextMetaDataSearch.php.

References $query.

{
// IN BOOLEAN MODE
if($this->db->isMysql4_0OrHigher())
{
$query .= " WHERE MATCH(title,coverage) 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 (title,coverage) AGAINST(' ";
foreach($this->query_parser->getQuotedWords(true) as $word)
{
$query .= $word;
$query .= ' ';
}
$query .= "') ";
}
return $query;
}
ilFulltextMetaDataSearch::ilFulltextMetaDataSearch ( $qp_obj)

Constructor public.

Definition at line 44 of file class.ilFulltextMetaDataSearch.php.

{
parent::ilMetaDataSearch($qp_obj);
}

The documentation for this class was generated from the following file: