61 $this->max_score = $a_score;
76 $score = $this->result[$a_obj_id][$sub_id][
'score'];
89 $this->result_string = $a_res;
120 foreach($root->children() as $object)
122 $obj_id = (
string) $object[
'id'];
123 foreach($object->children() as $item)
125 $sub_id = (
string) $item[
'id'];
128 $score = (
string) $item[
'absoluteScore'];
129 $this->result[$obj_id][$sub_id][
'score'] = $score;
132 foreach($item->children() as $field)
134 $name = (
string) $field[
'name'];
135 $this->result[$obj_id][$sub_id][$name] = (
string) $field;
151 return isset($this->result[$a_obj_id][$a_sub_id][
'title']) ? $this->result[$a_obj_id][$a_sub_id][
'title'] : null;
162 return isset($this->result[$a_obj_id][$a_sub_id][
'description']) ? $this->result[$a_obj_id][$a_sub_id][
'description'] : null;
173 return isset($this->result[$a_obj_id][$a_sub_id][
'content']) ? $this->result[$a_obj_id][$a_sub_id][
'content'] : null;
183 $sub_item_ids =
array();
184 if(!isset($this->result[$a_obj_id]))
188 foreach($this->result[$a_obj_id] as $sub_item_id =>
$data)
192 $sub_item_ids[] = $sub_item_id;
195 return $sub_item_ids ? $sub_item_ids :
array();
getTitle($a_obj_id, $a_sub_id)
get title
getResultString()
get result xml string
Parses result XML from lucene search highlight.
Add rich text string
The name of the decorator.
getSubItemIds($a_obj_id)
get subitem ids
setResultString($a_res)
set result xml string
getRelevance($a_obj_id, $sub_id)
get relevance
getDescription($a_obj_id, $a_sub_id)
get description
getContent($a_obj_id, $a_sub_id)
get content
Create styles array
The data for the language used.
static getLogger($a_component_id)
Get component logger.