3declare(strict_types=1);
54 $this->setting =
$DIC->settings();
56 $this->result->setCallback([$this,
'nextResultPage']);
57 $this->query_parser = $qp;
74 public function setType(
int $a_type): void
76 $this->type = $a_type;
102 if (!$this->query_parser->getQuery()) {
109 CLIENT_ID .
'_' . $this->setting->get(
'inst_id',
'0'),
111 $this->query_parser->getQuery()
113 }
catch (Exception
$e) {
119 $this->highlighter->setResultString(
$res);
120 $this->highlighter->parse();
130 $this->page_number++;
163 if (!$this->query_parser->getQuery()) {
172 CLIENT_ID .
'_' . $this->setting->get(
'inst_id',
'0'),
173 $this->query_parser->getQuery()
180 CLIENT_ID .
'_' . $this->setting->get(
'inst_id',
'0'),
181 $this->query_parser->getQuery(),
182 $this->getPageNumber()
188 }
catch (Exception
$e) {
197 $parser->parse($this->result);
static getLogger(string $a_component_id)
Get component logger.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Reads and parses lucene search results.
ilLuceneHighlighterResultParser $highlighter
ilLuceneSearchResult $result
performSearch()
search lucene
highlight(array $a_obj_ids)
setType(int $a_type)
Set search type.
__construct(ilLuceneQueryParser $qp)
static getInstance(ilLuceneQueryParser $qp)
Get singleton instance.
ilLuceneQueryParser $query_parser
getPageNumber()
get current page number
static ilLuceneSearcher $instance
nextResultPage()
get next result page
getHighlighter()
get highlighter
static factory(string $a_package, int $a_timeout=0)
Creates an ilRpcClient instance to our ilServer.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...