19 declare(strict_types=1);
54 if (!strlen($this->
getXML())) {
62 foreach ($hits->children() as $object) {
63 if (isset($object[
'absoluteScore'])) {
64 $result->
addObject((
int) $object[
'id'], (
float) $object[
'absoluteScore']);
66 $result->
addObject((
int) $object[
'id'], (
float) $object->Item[0][
'absoluteScore']);
parse(ilLuceneSearchResult $result)
Parse XML.
addObject(int $a_value, float $a_relevance=0)
__construct(string $a_xml)
Constructor.
Search result implementing iterator interface.
setMaxScore(float $a_score)
Parses Lucene search results.
setTotalHits(int $a_hits)