|
libosmscout 0.1
|
A class that allows prefix-based searching of text data indexed during import. More...
#include <TextSearchIndex.h>
Public Types | |
| using | ResultsMap = std::unordered_map<std::string, std::vector<ObjectFileRef> > |
Public Member Functions | |
| bool | Load (const std::string &path) |
| bool | Search (const std::string &query, bool searchPOIs, bool searchLocations, bool searchRegions, bool searchOther, bool transliterate, ResultsMap &results) const |
| TextSearchIndex ()=default | |
| ~TextSearchIndex () | |
Static Public Attributes | |
| static const char *const | TEXT_LOC_DAT ="textloc.dat" |
| static const char *const | TEXT_OTHER_DAT ="textother.dat" |
| static const char *const | TEXT_POI_DAT ="textpoi.dat" |
| static const char *const | TEXT_REGION_DAT ="textregion.dat" |
A class that allows prefix-based searching of text data indexed during import.
| using osmscout::TextSearchIndex::ResultsMap = std::unordered_map<std::string, std::vector<ObjectFileRef> > |
|
default |
References Load(), Search(), and TextSearchIndex().
Referenced by TextSearchIndex().
| osmscout::TextSearchIndex::~TextSearchIndex | ( | ) |
| bool osmscout::TextSearchIndex::Load | ( | const std::string & | path | ) |
References osmscout::AppendFileToDir(), osmscout::log, osmscout::StringToNumberUnsigned(), TEXT_LOC_DAT, TEXT_OTHER_DAT, TEXT_POI_DAT, and TEXT_REGION_DAT.
Referenced by TextSearchIndex().
| bool osmscout::TextSearchIndex::Search | ( | const std::string & | query, |
| bool | searchPOIs, | ||
| bool | searchLocations, | ||
| bool | searchRegions, | ||
| bool | searchOther, | ||
| bool | transliterate, | ||
| ResultsMap & | results ) const |
References osmscout::log, osmscout::UTF8NormForLookup(), and osmscout::UTF8Transliterate().
Referenced by TextSearchIndex().
|
static |
Referenced by Load().
|
static |
Referenced by Load().
|
static |
Referenced by Load().
|
static |
Referenced by Load().