24 include_once
'./Services/Search/classes/Lucene/class.ilLuceneSearchResult.php';
56 $this->result->setCallback(array($this,
'nextResultPage'));
57 $this->query_parser = $qp;
82 $this->type = $a_type;
113 include_once
'./Services/Search/classes/Lucene/class.ilLuceneHighlighterResultParser.php';
116 if(!$this->query_parser->getQuery())
122 $ilBench->start(
'Lucene',
'SearchHighlight');
125 include_once
'./Services/WebServices/RPC/classes/class.ilRpcClientFactory.php';
127 CLIENT_ID.
'_'.$ilSetting->get(
'inst_id',0),
129 $this->query_parser->getQuery()
135 $ilLog->write(__METHOD__.
': '.$e->getMessage());
140 $ilLog->write(__METHOD__.
': '.$e->getMessage());
143 $ilBench->stop(
'Lucene',
'SearchHighlight');
145 $ilBench->start(
'Lucene',
'SearchHighlightParser');
146 include_once
'./Services/Search/classes/Lucene/class.ilLuceneHighlighterResultParser.php';
148 #$GLOBALS['ilLog']->write(__METHOD__.' Result is '. $res);
149 $this->highlighter->setResultString(
$res);
150 $this->highlighter->parse();
151 $ilBench->stop(
'Lucene',
'SearchHighlightParser');
163 $this->page_number++;
209 if(!$this->query_parser->getQuery())
213 $ilBench->start(
'Lucene',
'SearchCombinedIndex');
219 case self::TYPE_USER:
220 include_once
'./Services/WebServices/RPC/classes/class.ilRpcClientFactory.php';
222 CLIENT_ID.
'_'.$ilSetting->get(
'inst_id',0),
223 (string) $this->query_parser->getQuery()
227 case self::TYPE_STANDARD:
229 include_once
'./Services/WebServices/RPC/classes/class.ilRpcClientFactory.php';
231 CLIENT_ID.
'_'.$ilSetting->get(
'inst_id',0),
232 (string) $this->query_parser->getQuery(),
242 $ilBench->stop(
'Lucene',
'SearchCombinedIndex');
243 $ilLog->write(__METHOD__.
': '.$e->getMessage());
248 $ilBench->stop(
'Lucene',
'SearchCombinedIndex');
249 $ilLog->write(__METHOD__.
': '.$e->getMessage());
252 $ilBench->stop(
'Lucene',
'SearchCombinedIndex');
256 $ilBench->start(
'Lucene',
'ParseSearchResult');
257 include_once
'./Services/Search/classes/Lucene/class.ilLuceneSearchResultParser.php';
260 #$GLOBALS['ilLog']->write(__METHOD__.' Result is: ' . $res);
262 $parser->parse($this->result);
263 $ilBench->stop(
'Lucene',
'ParseSearchResult');