24 include_once
'./Services/Search/classes/Lucene/class.ilLuceneSearchResult.php';
52 $this->result->setCallback(array($this,
'nextResultPage'));
53 $this->query_parser = $qp;
90 include_once
'./Services/Search/classes/Lucene/class.ilLuceneHighlighterResultParser.php';
93 if(!$this->query_parser->getQuery())
99 $ilBench->start(
'Lucene',
'SearchHighlight');
102 include_once
'./Services/WebServices/RPC/classes/class.ilRpcClientFactory.php';
104 CLIENT_ID.
'_'.$ilSetting->get(
'inst_id',0),
106 $this->query_parser->getQuery()
112 $ilLog->write(__METHOD__.
': '.$e->getMessage());
117 $ilLog->write(__METHOD__.
': '.$e->getMessage());
120 $ilBench->stop(
'Lucene',
'SearchHighlight');
122 $ilBench->start(
'Lucene',
'SearchHighlightParser');
123 include_once
'./Services/Search/classes/Lucene/class.ilLuceneHighlighterResultParser.php';
125 $this->highlighter->setResultString(
$res);
126 $this->highlighter->parse();
127 $ilBench->stop(
'Lucene',
'SearchHighlightParser');
139 $this->page_number++;
185 if(!$this->query_parser->getQuery())
189 $ilBench->start(
'Lucene',
'SearchCombinedIndex');
192 include_once
'./Services/WebServices/RPC/classes/class.ilRpcClientFactory.php';
194 CLIENT_ID.
'_'.$ilSetting->get(
'inst_id',0),
195 (string) $this->query_parser->getQuery(),
202 $ilBench->stop(
'Lucene',
'SearchCombinedIndex');
203 $ilLog->write(__METHOD__.
': '.$e->getMessage());
208 $ilBench->stop(
'Lucene',
'SearchCombinedIndex');
209 $ilLog->write(__METHOD__.
': '.$e->getMessage());
212 $ilBench->stop(
'Lucene',
'SearchCombinedIndex');
216 $ilBench->start(
'Lucene',
'ParseSearchResult');
217 include_once
'./Services/Search/classes/Lucene/class.ilLuceneSearchResultParser.php';
219 $parser->parse($this->result);
220 $ilBench->stop(
'Lucene',
'ParseSearchResult');