Lux::Searcher Class Reference

#include <searcher.h>

List of all members.

Public Member Functions

 Searcher (Engine &engine)
 ~Searcher ()
void set_sys_cond (sys_cond_t sys_cond)
ResultSet search (const char *query, Condition &cond)
ResultSet search (const std::string &query, Condition &cond)
IndexResultSet search_by_server (const char *query, Condition &cond)
IndexResultSet search_by_server (const std::string &query, Condition &cond)
std::string getdoc_by_server (doc_id_t doc_id)
void clear_attrs (IndexResultSet &irs, Condition &cond)


Detailed Description

searcher interface


Constructor & Destructor Documentation

Lux::Searcher::Searcher ( Engine engine  ) 

constructor

Parameters:
engine database engine object

Lux::Searcher::~Searcher (  ) 

destructor


Member Function Documentation

void Lux::Searcher::clear_attrs ( IndexResultSet &  irs,
Condition cond 
)

Note:
FIXME: this shouldn't be public. (needed by internal server for now)

std::string Lux::Searcher::getdoc_by_server ( doc_id_t  doc_id  ) 

get document by internal server

Note:
do not use this method directory.

ResultSet Lux::Searcher::search ( const std::string &  query,
Condition cond 
)

search query

Parameters:
query reference to query
cond reference to Condition

ResultSet Lux::Searcher::search ( const char *  query,
Condition cond 
)

search query

Parameters:
query pointer to query
cond reference to Condition

IndexResultSet Lux::Searcher::search_by_server ( const std::string &  query,
Condition cond 
)

search query by internal server

Note:
do not use this method directory.

IndexResultSet Lux::Searcher::search_by_server ( const char *  query,
Condition cond 
)

search query by internal server

Note:
do not use this method directory.

void Lux::Searcher::set_sys_cond ( sys_cond_t  sys_cond  ) 

set system condition

Parameters:
sys_cond system condition such as an index format


The documentation for this class was generated from the following files:
Generated on Fri Feb 5 15:50:30 2010 for Lux by  doxygen 1.4.7