ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLuceneHTLMSearch Class Reference
+ Collaboration diagram for ilLuceneHTLMSearch:

Public Member Functions

 ilLuceneHTLMSearch (&$qp_obj)
 Constructor public.
performSearch ()

Detailed Description

Definition at line 35 of file class.ilLuceneHTLMSearch.php.

Member Function Documentation

ilLuceneHTLMSearch::ilLuceneHTLMSearch ( $qp_obj)

Constructor public.

Definition at line 42 of file class.ilLuceneHTLMSearch.php.

References $ilLog.

{
global $ilLog;
$this->log =& $ilLog;
$this->query_parser =& $qp_obj;
}
& ilLuceneHTLMSearch::performSearch ( )

Definition at line 50 of file class.ilLuceneHTLMSearch.php.

References $res, $result, and elseif().

{
include_once './Services/Search/classes/Lucene/class.ilLuceneRPCAdapter.php';
include_once './Services/Search/classes/class.ilSearchResult.php';
$rpc_adapter =& new ilLuceneRPCAdapter();
$rpc_adapter->setMode('query');
$rpc_adapter->setSearchFilter(array('htlm'));
$rpc_adapter->setQueryString($this->query_parser->getLuceneQueryString());
if(($res = $rpc_adapter->send()) === false)
{
$this->log->write('Lucene searcher: Error performing search');
}
elseif(count($res))
{
foreach($res as $obj_id => $obj_type)
{
$result->addEntry($obj_id,$obj_type,array());
}
}
return $result;
}

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: