libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
osmscout::TextSearchIndex Class Reference

A class that allows prefix-based searching of text data indexed during import. More...

#include <TextSearchIndex.h>

Public Types

typedef std::unordered_map
< std::string, std::vector
< ObjectFileRef > > 
ResultsMap
 

Public Member Functions

bool Load (const std::string &path)
 
bool Search (const std::string &query, bool searchPOIs, bool searchLocations, bool searchRegions, bool searchOther, ResultsMap &results) const
 
 TextSearchIndex ()
 
 ~TextSearchIndex ()
 

Static Public Attributes

static const char * TEXT_LOC_DAT ="textloc.dat"
 
static const char * TEXT_OTHER_DAT ="textother.dat"
 
static const char * TEXT_POI_DAT ="textpoi.dat"
 
static const char * TEXT_REGION_DAT ="textregion.dat"
 

Detailed Description

A class that allows prefix-based searching of text data indexed during import.

Member Typedef Documentation

typedef std::unordered_map<std::string,std::vector<ObjectFileRef> > osmscout::TextSearchIndex::ResultsMap

Constructor & Destructor Documentation

osmscout::TextSearchIndex::TextSearchIndex ( )
osmscout::TextSearchIndex::~TextSearchIndex ( )

Member Function Documentation

bool osmscout::TextSearchIndex::Search ( const std::string &  query,
bool  searchPOIs,
bool  searchLocations,
bool  searchRegions,
bool  searchOther,
ResultsMap results 
) const

Member Data Documentation

const char * osmscout::TextSearchIndex::TEXT_LOC_DAT ="textloc.dat"
static

Referenced by Load().

const char * osmscout::TextSearchIndex::TEXT_OTHER_DAT ="textother.dat"
static

Referenced by Load().

const char * osmscout::TextSearchIndex::TEXT_POI_DAT ="textpoi.dat"
static

Referenced by Load().

const char * osmscout::TextSearchIndex::TEXT_REGION_DAT ="textregion.dat"
static

Referenced by Load().


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