4 include_once
'./Services/Search/classes/class.ilSearchSettings.php';
30 $this->obj_id = $a_obj_id;
62 $this->query_string = $a_query;
98 include_once
'./Services/Search/classes/Lucene/class.ilLuceneQueryParser.php';
110 include_once
'./Services/Search/classes/Lucene/class.ilLuceneSearcher.php';
114 include_once
'./Services/Search/classes/class.ilRepositoryObjectDetailSearchResult.php';
119 foreach($searcher->getHighlighter()->getSubItemIds($this->
getObjId()) as $sub_id)
121 $detail_search_result->addResultSet(
124 'item_id' => $sub_id,
125 'relevance' => $searcher->getHighlighter()->getRelevance($this->
getObjId(),$sub_id),
126 'content' => $searcher->getHighlighter()->getContent($this->
getObjId(),$sub_id)
131 return $detail_search_result;
142 include_once
'Services/Search/classes/class.ilQueryParser.php';
146 $query_parser->setCombination(
151 $query_parser->parse();
153 if(!$query_parser->validate())
155 throw new Exception($query_parser->getMessage());
157 include_once
'Services/Search/classes/class.ilSearchResult.php';
160 include_once
'Services/Search/classes/class.ilObjectSearchFactory.php';
166 $search->setFilter(
array(
'wpg'));
172 $search_result->mergeEntries($search->performSearch());
174 include_once
'./Services/Search/classes/class.ilRepositoryObjectDetailSearchResult.php';
177 foreach($search_result->getEntries() as $entry)
179 foreach((
array) $entry[
'child'] as $child)
181 $detail_search_result->addResultSet(
183 'obj_id' => $entry[
'obj_id'],
189 return $detail_search_result;
Parses result XML from lucene search highlight.
getQueryString()
get query string
performLuceneSearch()
Perform lucene search.
static getInstance(ilLuceneQueryParser $qp)
Get singleton instance.
performSearch()
Perform search.
__construct($a_obj_id)
constructor
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
static getByTypeSearchInstance($a_object_type, $a_query_parser)
getSettings()
Get settings.
static getLogger($a_component_id)
Get component logger.
performDBSearch()
Perform DB search.