48 LOG(
INFO) <<
"WsSearch::loadModule() : Loading search module";
53 boost::replace_first(libName,
".so",
"d.so");
56 void* hndl = dlopen(libName.c_str(), RTLD_LAZY);
58 LOG(
ERROR) <<
"WsSearch::loadModule() : load ERROR " << dlerror();
61 LOG(
DEBUG) <<
"WsSearch::loadModule() : Building module";
64 LOG(
DEBUG) <<
"WsSearch::loadModule() : Casting module to specified object";
66 LOG(
DEBUG) <<
"WsSearch::loadModule() : Done loading";
virtual vector< WsResultItem > getResults(const std::set< std::string > &groups)=0
return the results found for the query filtered for the user
WsAbstractSearch *(* pf_wsSearchMod)()
virtual int load(FileSystemTreePtr fs, std::string q)=0
load the results (execute the search query)
int loadModule()
loads the search module.
virtual int getSize()=0
return the number of results found
boost::shared_ptr< WsFileSystemTree > FileSystemTreePtr
int load()
Loads all search results.
WsAbstractSearch * m_searchImpl
std::string get(const std::string §ion, const std::string &id, const std::string &def)
static WsGlobalProperties * instance()
int getSize()
Loads all search results.
vector< WsResultItem > getResults(const std::set< std::string > &groups)
Get list of documents readable by person member of all groups passed in parameter.
WsSearch(FileSystemTreePtr fst, const std::string &query)
Constructor for the Search object.