19declare(strict_types=1);
47 $this->setting =
$DIC->settings();
49 $this->result->setCallback([$this,
'nextResultPage']);
50 $this->query_parser = $qp;
67 public function setType(
int $a_type): void
69 $this->type = $a_type;
95 if (!$this->query_parser->getQuery()) {
102 CLIENT_ID .
'_' . $this->setting->get(
'inst_id',
'0'),
104 $this->query_parser->getQuery()
106 }
catch (Exception
$e) {
112 $this->highlighter->setResultString(
$res);
113 $this->highlighter->parse();
123 $this->page_number++;
156 if (!$this->query_parser->getQuery()) {
164 CLIENT_ID .
'_' . $this->setting->get(
'inst_id',
'0'),
165 $this->query_parser->getQuery()
172 CLIENT_ID .
'_' . $this->setting->get(
'inst_id',
'0'),
173 $this->query_parser->getQuery(),
174 $this->getPageNumber()
179 }
catch (Exception
$e) {
188 $parser->parse($this->result);
static getLogger(string $a_component_id)
Get component logger.
Parses result XML from lucene search highlight.
Parses Lucene search results.
Search result implementing iterator interface.
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.