LibreOffice Module helpcompiler (master) 1
Public Member Functions | Private Attributes | List of all members
HelpSearch Class Reference

#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
 

Detailed Description

Definition at line 18 of file HelpSearch.hxx.

Constructor & Destructor Documentation

◆ HelpSearch()

HelpSearch::HelpSearch ( OUString const &  indexDir)
Parameters
indexDirThe directory where the index files are stored.

Definition at line 17 of file HelpSearch.cxx.

References d_indexDir, and OUStringToOString().

Member Function Documentation

◆ query()

void HelpSearch::query ( OUString const &  queryStr,
bool  captionOnly,
std::vector< OUString > &  rDocuments,
std::vector< float > &  rScores 
)

Query the index for a certain query string.

Parameters
queryStrThe query.
captionOnlySet to true to search in the caption, not the content.
rDocumentsVector to write the paths of the found documents.
rScoresVector to write the scores to.

Definition at line 24 of file HelpSearch.cxx.

References d_indexDir, i, OUStringToTCHARVec(), and TCHARArrayToOUString().

Member Data Documentation

◆ d_indexDir

OString HelpSearch::d_indexDir
private

Definition at line 20 of file HelpSearch.hxx.

Referenced by HelpSearch(), and query().


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