24 include_once
'./Services/Search/classes/Lucene/class.ilLuceneSearchResult.php';
46 private $type = self::TYPE_STANDARD;
56 $this->result->setCallback(array($this,
'nextResultPage'));
57 $this->query_parser = $qp;
69 if (self::$instance) {
70 return self::$instance;
115 include_once
'./Services/Search/classes/Lucene/class.ilLuceneHighlighterResultParser.php';
118 if (!$this->query_parser->getQuery()) {
123 $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()
136 include_once
'./Services/Search/classes/Lucene/class.ilLuceneHighlighterResultParser.php';
138 $this->highlighter->setResultString(
$res);
139 $this->highlighter->parse();
151 $this->page_number++;
199 if (!$this->query_parser->getQuery()) {
202 $ilBench->start(
'Lucene',
'SearchCombinedIndex');
206 case self::TYPE_USER:
207 include_once
'./Services/WebServices/RPC/classes/class.ilRpcClientFactory.php';
209 CLIENT_ID .
'_' .
$ilSetting->get(
'inst_id', 0),
210 (string) $this->query_parser->getQuery()
214 case self::TYPE_STANDARD:
216 include_once
'./Services/WebServices/RPC/classes/class.ilRpcClientFactory.php';
218 CLIENT_ID .
'_' .
$ilSetting->get(
'inst_id', 0),
219 (string) $this->query_parser->getQuery(),
232 include_once
'./Services/Search/classes/Lucene/class.ilLuceneSearchResultParser.php';
Parses result XML from lucene search highlight.
static factory($a_package, $a_timeout=0)
Creates an ilRpcClient instance to our ilServer.
static getInstance(ilLuceneQueryParser $qp)
Get singleton instance.
__construct($qp)
Constructor.
getHighlighter()
get highlighter
Reads and parses lucene search results.
Search result implementing iterator interface.
foreach($_POST as $key=> $value) $res
setType($a_type)
Set search type.
performSearch()
search lucene
getPageNumber()
get current page number
Parses Lucene search results.
highlight($a_obj_ids)
Highlight/Detail query.
static getLogger($a_component_id)
Get component logger.
nextResultPage()
get next result page