60 $this->max_score = $a_score;
74 $score = $this->result[$a_obj_id][$sub_id][
'score'];
87 $this->result_string = $a_res;
117 foreach ($root->children() as $object) {
118 $obj_id = (
string) $object[
'id'];
119 foreach ($object->children() as $item) {
120 $sub_id = (
string) $item[
'id'];
123 $score = (
string) $item[
'absoluteScore'];
124 $this->result[$obj_id][$sub_id][
'score'] = $score;
127 foreach ($item->children() as $field) {
129 $this->result[$obj_id][$sub_id][
$name] = (
string) $field;
145 return isset($this->result[$a_obj_id][$a_sub_id][
'title']) ? $this->result[$a_obj_id][$a_sub_id][
'title'] : null;
156 return isset($this->result[$a_obj_id][$a_sub_id][
'description']) ? $this->result[$a_obj_id][$a_sub_id][
'description'] : null;
167 return isset($this->result[$a_obj_id][$a_sub_id][
'content']) ? $this->result[$a_obj_id][$a_sub_id][
'content'] : null;
177 $sub_item_ids =
array();
178 if (!isset($this->result[$a_obj_id])) {
181 foreach ($this->result[$a_obj_id] as $sub_item_id =>
$data) {
183 $sub_item_ids[] = $sub_item_id;
186 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.
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.