LibreOffice Module helpcompiler (master) 1
|
#include <HelpSearch.hxx>
Public Member Functions | |
HelpSearch (OUString const &indexDir) | |
void | query (OUString const &queryStr, bool captionOnly, std::vector< OUString > &rDocuments, std::vector< float > &rScores) |
Query the index for a certain query string. More... | |
Private Attributes | |
OString | d_indexDir |
Definition at line 18 of file HelpSearch.hxx.
HelpSearch::HelpSearch | ( | OUString const & | indexDir | ) |
indexDir | The directory where the index files are stored. |
Definition at line 17 of file HelpSearch.cxx.
References d_indexDir, and OUStringToOString().
void HelpSearch::query | ( | OUString const & | queryStr, |
bool | captionOnly, | ||
std::vector< OUString > & | rDocuments, | ||
std::vector< float > & | rScores | ||
) |
Query the index for a certain query string.
queryStr | The query. |
captionOnly | Set to true to search in the caption, not the content. |
rDocuments | Vector to write the paths of the found documents. |
rScores | Vector to write the scores to. |
Definition at line 24 of file HelpSearch.cxx.
References d_indexDir, i, OUStringToTCHARVec(), and TCHARArrayToOUString().
|
private |
Definition at line 20 of file HelpSearch.hxx.
Referenced by HelpSearch(), and query().