#include <searcher.h>
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) |
Lux::Searcher::Searcher | ( | Engine & | engine | ) |
constructor
engine | database engine object |
Lux::Searcher::~Searcher | ( | ) |
destructor
void Lux::Searcher::clear_attrs | ( | IndexResultSet & | irs, | |
Condition & | cond | |||
) |
std::string Lux::Searcher::getdoc_by_server | ( | doc_id_t | doc_id | ) |
get document by internal server
search query
query | reference to query | |
cond | reference to Condition |
search query
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
IndexResultSet Lux::Searcher::search_by_server | ( | const char * | query, | |
Condition & | cond | |||
) |
search query by internal server
void Lux::Searcher::set_sys_cond | ( | sys_cond_t | sys_cond | ) |
set system condition
sys_cond | system condition such as an index format |