ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Reads and parses lucene search results. More...
Public Member Functions | |
setType ($a_type) | |
Set search type. More... | |
getType () | |
Get type. More... | |
search () | |
Search. More... | |
highlight ($a_obj_ids) | |
Highlight/Detail query. More... | |
nextResultPage () | |
get next result page More... | |
getHighlighter () | |
get highlighter More... | |
getResult () | |
Get result. More... | |
getPageNumber () | |
get current page number More... | |
Static Public Member Functions | |
static | getInstance (ilLuceneQueryParser $qp) |
Get singleton instance. More... | |
Data Fields | |
const | TYPE_STANDARD = 1 |
const | TYPE_USER = 2 |
Protected Member Functions | |
performSearch () | |
search lucene More... | |
Private Member Functions | |
__construct ($qp) | |
Constructor. More... | |
Private Attributes | |
$query_parser = null | |
$result = null | |
$highlighter = null | |
$page_number = 1 | |
$type = self::TYPE_STANDARD | |
Static Private Attributes | |
static | $instance = null |
Reads and parses lucene search results.
Definition at line 35 of file class.ilLuceneSearcher.php.
|
private |
Constructor.
object | ilLuceneQueryParser |
Definition at line 53 of file class.ilLuceneSearcher.php.
References array.
ilLuceneSearcher::getHighlighter | ( | ) |
get highlighter
Definition at line 161 of file class.ilLuceneSearcher.php.
References $highlighter.
|
static |
Get singleton instance.
object | ilLuceneQueryParser |
Definition at line 67 of file class.ilLuceneSearcher.php.
Referenced by ilSearchAutoComplete\getLuceneList(), ilRepositoryObjectDetailSearch\performLuceneSearch(), ilLuceneUserSearchGUI\performSearch(), ilLuceneAdvancedSearchGUI\performSearch(), ilLuceneSearchGUI\performSearch(), ilSoapObjectAdministration\searchObjects(), ilLuceneAdvancedSearchGUI\showSavedResults(), and ilLuceneSearchGUI\showSavedResults().
ilLuceneSearcher::getPageNumber | ( | ) |
get current page number
Definition at line 185 of file class.ilLuceneSearcher.php.
References $page_number.
Referenced by performSearch().
ilLuceneSearcher::getResult | ( | ) |
Get result.
Definition at line 171 of file class.ilLuceneSearcher.php.
References $result.
ilLuceneSearcher::getType | ( | ) |
Get type.
Definition at line 89 of file class.ilLuceneSearcher.php.
References $type.
Referenced by performSearch().
ilLuceneSearcher::highlight | ( | $a_obj_ids | ) |
Highlight/Detail query.
array | $a_obj_ids | Arry of obj_ids |
Definition at line 109 of file class.ilLuceneSearcher.php.
References $highlighter, $ilBench, $ilSetting, $res, ilRpcClientFactory\factory(), and ilLoggerFactory\getLogger().
ilLuceneSearcher::nextResultPage | ( | ) |
get next result page
Definition at line 151 of file class.ilLuceneSearcher.php.
References performSearch().
|
protected |
search lucene
Definition at line 194 of file class.ilLuceneSearcher.php.
References $ilBench, $ilSetting, $parser, $res, ilRpcClientFactory\factory(), ilLoggerFactory\getLogger(), getPageNumber(), getType(), and string.
Referenced by nextResultPage(), and search().
ilLuceneSearcher::search | ( | ) |
Search.
Definition at line 99 of file class.ilLuceneSearcher.php.
References performSearch().
ilLuceneSearcher::setType | ( | $a_type | ) |
Set search type.
type | $a_type |
Definition at line 80 of file class.ilLuceneSearcher.php.
References $a_type.
|
private |
Definition at line 44 of file class.ilLuceneSearcher.php.
Referenced by getHighlighter(), and highlight().
|
staticprivate |
Definition at line 40 of file class.ilLuceneSearcher.php.
|
private |
Definition at line 45 of file class.ilLuceneSearcher.php.
Referenced by getPageNumber().
|
private |
Definition at line 42 of file class.ilLuceneSearcher.php.
|
private |
Definition at line 43 of file class.ilLuceneSearcher.php.
Referenced by getResult().
|
private |
Definition at line 46 of file class.ilLuceneSearcher.php.
Referenced by getType().
const ilLuceneSearcher::TYPE_STANDARD = 1 |
Definition at line 37 of file class.ilLuceneSearcher.php.
Referenced by ilSearchAutoComplete\getLuceneList().
const ilLuceneSearcher::TYPE_USER = 2 |
Definition at line 38 of file class.ilLuceneSearcher.php.
Referenced by ilLuceneUserSearchGUI\performSearch().