ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilFulltextMetaDataSearch Class Reference
+ Inheritance diagram for ilFulltextMetaDataSearch:
+ Collaboration diagram for ilFulltextMetaDataSearch:

Public Member Functions

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

Detailed Description

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

Member Function Documentation

◆ __createContributeWhereCondition()

ilFulltextMetaDataSearch::__createContributeWhereCondition ( )

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

77 {
78 // IN BOOLEAN MODE
79 if($this->db->isMysql4_0OrHigher())
80 {
81 $query .= " WHERE MATCH(entity) AGAINST('";
82 foreach($this->query_parser->getQuotedWords(true) as $word)
83 {
84 $query .= $word;
85 $query .= '* ';
86 }
87 $query .= "' IN BOOLEAN MODE) ";
88 }
89 else
90 {
91 // i do not see any reason, but MATCH AGAINST(...) OR MATCH AGAINST(...) does not use an index
92 $query .= " WHERE MATCH (entity) AGAINST(' ";
93 foreach($this->query_parser->getQuotedWords(true) as $word)
94 {
95 $query .= $word;
96 $query .= ' ';
97 }
98 $query .= "') ";
99 }
100 return $query;
101 }

References $query.

◆ __createDescriptionWhereCondition()

ilFulltextMetaDataSearch::__createDescriptionWhereCondition ( )

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

129 {
130 // IN BOOLEAN MODE
131 if($this->db->isMysql4_0OrHigher())
132 {
133 $query .= " WHERE MATCH(description) AGAINST('";
134 foreach($this->query_parser->getQuotedWords(true) as $word)
135 {
136 $query .= $word;
137 $query .= '* ';
138 }
139 $query .= "' IN BOOLEAN MODE) ";
140 }
141 else
142 {
143 // i do not see any reason, but MATCH AGAINST(...) OR MATCH AGAINST(...) does not use an index
144 $query .= " WHERE MATCH (description) AGAINST(' ";
145 foreach($this->query_parser->getQuotedWords(true) as $word)
146 {
147 $query .= $word;
148 $query .= ' ';
149 }
150 $query .= "') ";
151 }
152 return $query;
153 }

References $query.

◆ __createKeywordWhereCondition()

ilFulltextMetaDataSearch::__createKeywordWhereCondition ( )

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

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

References $query.

◆ __createTitleWhereCondition()

ilFulltextMetaDataSearch::__createTitleWhereCondition ( )

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

103 {
104 // IN BOOLEAN MODE
105 if($this->db->isMysql4_0OrHigher())
106 {
107 $query .= " WHERE MATCH(title,coverage) AGAINST('";
108 foreach($this->query_parser->getQuotedWords(true) as $word)
109 {
110 $query .= $word;
111 $query .= '* ';
112 }
113 $query .= "' IN BOOLEAN MODE) ";
114 }
115 else
116 {
117 // i do not see any reason, but MATCH AGAINST(...) OR MATCH AGAINST(...) does not use an index
118 $query .= " WHERE MATCH (title,coverage) AGAINST(' ";
119 foreach($this->query_parser->getQuotedWords(true) as $word)
120 {
121 $query .= $word;
122 $query .= ' ';
123 }
124 $query .= "') ";
125 }
126 return $query;
127 }

References $query.

◆ ilFulltextMetaDataSearch()

ilFulltextMetaDataSearch::ilFulltextMetaDataSearch ( $qp_obj)

Constructor @access public.

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

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

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