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;
112 include_once
'./Services/Search/classes/Lucene/class.ilLuceneHighlighterResultParser.php';
115 if (!$this->query_parser->getQuery()) {
120 $ilBench->start(
'Lucene',
'SearchHighlight');
122 include_once
'./Services/WebServices/RPC/classes/class.ilRpcClientFactory.php';
124 CLIENT_ID .
'_' . $ilSetting->get(
'inst_id', 0),
126 $this->query_parser->getQuery()
133 include_once
'./Services/Search/classes/Lucene/class.ilLuceneHighlighterResultParser.php';
135 $this->highlighter->setResultString(
$res);
136 $this->highlighter->parse();
148 $this->page_number++;
193 if (!$this->query_parser->getQuery()) {
196 $ilBench->start(
'Lucene',
'SearchCombinedIndex');
200 case self::TYPE_USER:
201 include_once
'./Services/WebServices/RPC/classes/class.ilRpcClientFactory.php';
203 CLIENT_ID .
'_' . $ilSetting->get(
'inst_id', 0),
204 (
string) $this->query_parser->getQuery()
208 case self::TYPE_STANDARD:
210 include_once
'./Services/WebServices/RPC/classes/class.ilRpcClientFactory.php';
212 CLIENT_ID .
'_' . $ilSetting->get(
'inst_id', 0),
213 (
string) $this->query_parser->getQuery(),
226 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
Create styles array
The data for the language used.
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