libosmscout  1.1.1
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
osmscout::TextSearchIndex Class Referencefinal

#include <libosmscout/include/osmscout/TextSearchIndex.h>

Public Types

using ResultsMap = std::unordered_map< std::string, std::vector< ObjectFileRef > >
 

Public Member Functions

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

Static Public Attributes

static const char *const TEXT_POI_DAT
 
static const char *const TEXT_LOC_DAT
 
static const char *const TEXT_REGION_DAT
 
static const char *const TEXT_OTHER_DAT
 

Detailed Description

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

Member Typedef Documentation

◆ ResultsMap

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

Constructor & Destructor Documentation

◆ TextSearchIndex()

osmscout::TextSearchIndex::TextSearchIndex ( )
default

◆ ~TextSearchIndex()

osmscout::TextSearchIndex::~TextSearchIndex ( )

Member Function Documentation

◆ Load()

bool osmscout::TextSearchIndex::Load ( const std::string &  path)

◆ Search()

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

Member Data Documentation

◆ TEXT_LOC_DAT

const char* const osmscout::TextSearchIndex::TEXT_LOC_DAT
static

◆ TEXT_OTHER_DAT

const char* const osmscout::TextSearchIndex::TEXT_OTHER_DAT
static

◆ TEXT_POI_DAT

const char* const osmscout::TextSearchIndex::TEXT_POI_DAT
static

◆ TEXT_REGION_DAT

const char* const osmscout::TextSearchIndex::TEXT_REGION_DAT
static

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