ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5
ilFulltextWebresourceSearch Class Reference
+ Inheritance diagram for ilFulltextWebresourceSearch:
+ Collaboration diagram for ilFulltextWebresourceSearch:

Public Member Functions

 ilFulltextWebresourceSearch (&$qp_obj)
 Constructor public. More...
 
 __createWhereCondition ()
 
- Public Member Functions inherited from ilWebresourceSearch
 ilWebresourceSearch (&$query_parser)
 Constructor public. More...
 
performSearch ()
 
 __createAndCondition ()
 
- Public Member Functions inherited from ilAbstractSearch
 ilAbstractSearch (&$qp_obj)
 Constructor public. More...
 
 setFields ($a_fields)
 Set fields to search. More...
 
 getFields ()
 Get fields to search. More...
 
 setFilter ($a_filter)
 set object type to search in More...
 
 setIdFilter ($a_id_filter)
 Set id filter Filters search by given object id. More...
 
 getIdFilter ()
 Get Id filter. More...
 
 appendToFilter ($a_type)
 Append object type to filter. More...
 
 getFilter ()
 get object type to search in More...
 
 __createLocateString ()
 build locate string in case of AND search More...
 
 __prepareFound (&$row)
 
performSearch ()
 

Additional Inherited Members

- Data Fields inherited from ilAbstractSearch
 $db = null
 
 $query_parser = null
 
 $search_result = null
 
 $object_types
 

Detailed Description

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

Member Function Documentation

◆ __createWhereCondition()

ilFulltextWebresourceSearch::__createWhereCondition ( )

Definition at line 49 of file class.ilFulltextWebresourceSearch.php.

References $query.

50  {
51  // IN BOOLEAN MODE
52  if($this->db->isMysql4_0OrHigher())
53  {
54  $query .= " WHERE MATCH(title) AGAINST('";
55  foreach($this->query_parser->getQuotedWords(true) as $word)
56  {
57  $query .= $word;
58  $query .= '* ';
59  }
60  $query .= "' IN BOOLEAN MODE) ";
61  }
62  else
63  {
64  // i do not see any reason, but MATCH AGAINST(...) OR MATCH AGAINST(...) does not use an index
65  $query .= " WHERE MATCH (title) AGAINST(' ";
66  foreach($this->query_parser->getQuotedWords(true) as $word)
67  {
68  $query .= $word;
69  $query .= ' ';
70  }
71  $query .= "') ";
72  }
73  return $query;
74  }

◆ ilFulltextWebresourceSearch()

ilFulltextWebresourceSearch::ilFulltextWebresourceSearch ( $qp_obj)

Constructor public.

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

45  {
46  parent::ilWebresourceSearch($qp_obj);
47  }

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