ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilFulltextMetaDataSearch Class Reference
+ Inheritance diagram for ilFulltextMetaDataSearch:
+ Collaboration diagram for ilFulltextMetaDataSearch:

Public Member Functions

 __createKeywordWhereCondition ()
 
 __createContributeWhereCondition ()
 
 __createTitleWhereCondition ()
 
 __createDescriptionWhereCondition ()
 
- Public Member Functions inherited from ilMetaDataSearch
 setMode ($a_mode)
 Define meta elements to search. More...
 
 getMode ()
 
 performSearch ()
 
 __createInStatement ()
 
 __searchContribute ()
 
 __searchKeywords ()
 
 __searchTitles ()
 
 __searchDescriptions ()
 
- Public Member Functions inherited from ilAbstractSearch
 __construct ($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 ilMetaDataSearch
 $mode = ''
 
 $query_parser = null
 
 $db = null
 
- Data Fields inherited from ilAbstractSearch
 $db = null
 
 $query_parser = null
 
 $search_result = null
 
 $object_types
 

Detailed Description

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

Member Function Documentation

◆ __createContributeWhereCondition()

ilFulltextMetaDataSearch::__createContributeWhereCondition ( )

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

References $query.

52  {
53  // IN BOOLEAN MODE
54  $query .= " WHERE MATCH(entity) AGAINST('";
55  foreach ($this->query_parser->getQuotedWords(true) as $word) {
56  $query .= $word;
57  $query .= '* ';
58  }
59  $query .= "' IN BOOLEAN MODE) ";
60  return $query;
61  }
$query

◆ __createDescriptionWhereCondition()

ilFulltextMetaDataSearch::__createDescriptionWhereCondition ( )

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

References $query.

74  {
75  // IN BOOLEAN MODE
76  $query .= " WHERE MATCH(description) AGAINST('";
77  foreach ($this->query_parser->getQuotedWords(true) as $word) {
78  $query .= $word;
79  $query .= '* ';
80  }
81  $query .= "' IN BOOLEAN MODE) ";
82  return $query;
83  }
$query

◆ __createKeywordWhereCondition()

ilFulltextMetaDataSearch::__createKeywordWhereCondition ( )

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

References $query.

41  {
42  // IN BOOLEAN MODE
43  $query .= " WHERE MATCH(keyword) AGAINST('";
44  foreach ($this->query_parser->getQuotedWords(true) as $word) {
45  $query .= $word;
46  $query .= '* ';
47  }
48  $query .= "' IN BOOLEAN MODE) ";
49  return $query;
50  }
$query

◆ __createTitleWhereCondition()

ilFulltextMetaDataSearch::__createTitleWhereCondition ( )

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

References $query.

63  {
64  // IN BOOLEAN MODE
65  $query .= " WHERE MATCH(title,coverage) AGAINST('";
66  foreach ($this->query_parser->getQuotedWords(true) as $word) {
67  $query .= $word;
68  $query .= '* ';
69  }
70  $query .= "' IN BOOLEAN MODE) ";
71  return $query;
72  }
$query

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