4 include_once
'./Services/Search/classes/class.ilSearchSettings.php';
30 $this->obj_id = $a_obj_id;
62 $this->query_string = $a_query;
95 include_once
'./Services/Search/classes/Lucene/class.ilLuceneQueryParser.php';
104 include_once
'./Services/Search/classes/Lucene/class.ilLuceneSearcher.php';
108 include_once
'./Services/Search/classes/class.ilRepositoryObjectDetailSearchResult.php';
112 foreach ($searcher->getHighlighter()->getSubItemIds($this->
getObjId()) as $sub_id) {
113 $detail_search_result->addResultSet(
116 'item_id' => $sub_id,
117 'relevance' => $searcher->getHighlighter()->getRelevance($this->
getObjId(), $sub_id),
118 'content' => $searcher->getHighlighter()->getContent($this->
getObjId(), $sub_id)
123 return $detail_search_result;
134 include_once
'Services/Search/classes/class.ilQueryParser.php';
138 $query_parser->setCombination(
143 $query_parser->parse();
145 if (!$query_parser->validate()) {
146 throw new Exception($query_parser->getMessage());
148 include_once
'Services/Search/classes/class.ilSearchResult.php';
151 include_once
'Services/Search/classes/class.ilObjectSearchFactory.php';
156 $search->setFilter(
array(
'wpg'));
162 $search_result->mergeEntries($search->performSearch());
164 include_once
'./Services/Search/classes/class.ilRepositoryObjectDetailSearchResult.php';
167 foreach ($search_result->getEntries() as $entry) {
168 foreach ((
array) $entry[
'child'] as $child) {
169 $detail_search_result->addResultSet(
171 'obj_id' => $entry[
'obj_id'],
177 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.