1 #ifndef __OPENTREP_BOM_RESULT_HPP
2 #define __OPENTREP_BOM_RESULT_HPP
65 return _correctedQueryString;
72 return _hasFullTextMatched;
87 return _allowableEditDistance;
113 const Xapian::Document&
getDocument (
const Xapian::docid&)
const;
126 return _bestCombinedWeight;
150 _queryString = iQueryString;
157 _correctedQueryString = iCorrectedQueryString;
164 _hasFullTextMatched = iHasFullTextMatched;
171 _editDistance = iEditDistance;
179 _allowableEditDistance = iAllowableEditDistance;
216 _bestCombinedWeight = iPercentage;
233 void fillResult (
const Xapian::MSet& iMatchingSet);
386 void toStream (std::ostream& ioOut)
const;
451 const Xapian::Database& _database;
470 bool _hasFullTextMatched;
486 Xapian::docid _bestDocID;
512 #endif // __OPENTREP_BOM_RESULT_HPP
void fromStream(std::istream &ioIn)
void setCorrectedQueryString(const TravelQuery_T &iCorrectedQueryString)
Class modelling the primary key of a location/POR (point of reference).
std::pair< Xapian::Document, ScoreBoard > XapianDocumentPair_T
const XapianDocumentPair_T & getDocumentPair(const Xapian::docid &) const
const TravelQuery_T & getQueryString() const
void calculateCombinedWeights()
const TravelQuery_T & getCorrectedTravelQuery() const
static LocationKey getPrimaryKey(const Xapian::Document &)
const NbOfErrors_T & getEditDistance() const
Structure modelling a (geographical) location.
static Score_T getEnvelopeID(const Xapian::Document &)
static PageRank_T getPageRank(const Xapian::Document &)
const Xapian::Document & getDocument(const Xapian::docid &) const
static Location retrieveLocation(const Xapian::Document &)
void addDocument(const Xapian::Document &, const Score_T &)
std::string fullTextMatch(const Xapian::Database &, const TravelQuery_T &)
void displayXapianPercentages() const
const Percentage_T & getBestCombinedWeight() const
void setQueryString(const TravelQuery_T &iQueryString)
bool hasFullTextMatched() const
void setScoreOnDocMap(const Xapian::docid &, const ScoreType &, const Score_T &)
void fillResult(const Xapian::MSet &iMatchingSet)
void toStream(std::ostream &ioOut) const
std::map< Xapian::docid, XapianDocumentPair_T > DocumentMap_T
void setEditDistance(const NbOfErrors_T &iEditDistance)
Class wrapping functions on a list of Result objects.
unsigned short NbOfErrors_T
void setBestCombinedWeight(const Percentage_T &iPercentage)
Class modelling a place/POR (point of reference).
std::string toString() const
void setBestDocData(const std::string &iDocData)
const Xapian::docid & getBestDocID() const
std::list< MatchingDocuments > DocumentList_T
Enumeration of score types.
void calculateHeuristicWeights()
void fillPlace(Place &) const
Base class for the Business Object Model (BOM) layer.
std::string describeKey() const
void calculatePageRanks()
const DocumentList_T & getDocumentList() const
void setBestDocID(const Xapian::docid &iDocID)
std::string TravelQuery_T
const NbOfErrors_T & getAllowableEditDistance() const
void setHasFullTextMatched(const bool iHasFullTextMatched)
const DocumentMap_T & getDocumentMap() const
std::string describeShortKey() const
void setAllowableEditDistance(const NbOfErrors_T &iAllowableEditDistance)
void calculateEnvelopeWeights()
void calculateCodeMatches()
Class wrapping a set of Xapian documents having matched a given query string.
const RawDataString_T & getBestDocData() const
const Xapian::Document & getBestXapianDocument() const