Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortatiana-yan <tatiana.kondakova@gmail.com>2019-04-23 16:23:46 +0300
committermpimenov <mpimenov@users.noreply.github.com>2019-04-23 19:05:04 +0300
commitad0bca72b5f0adad982fffee1b5bf7e75d87f439 (patch)
tree869c9d372085f1c829e5746e52c6bcf522b94efd /search/ranking_info.hpp
parente77592b68e345c8cec11324be0c03c1b5a8df6bb (diff)
[search] Heuristics for rating.
Diffstat (limited to 'search/ranking_info.hpp')
-rw-r--r--search/ranking_info.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/search/ranking_info.hpp b/search/ranking_info.hpp
index 2b47b23632..2668ea0f45 100644
--- a/search/ranking_info.hpp
+++ b/search/ranking_info.hpp
@@ -8,6 +8,7 @@
#include <cstdint>
#include <ostream>
#include <string>
+#include <utility>
class FeatureType;
@@ -36,6 +37,9 @@ struct RankingInfo
// Popularity rank of the feature.
uint8_t m_popularity = 0;
+ // Confidence and UGC rating.
+ std::pair<uint8_t, float> m_rating = {0, 0.0f};
+
// Score for the feature's name.
NameScore m_nameScore = NAME_SCORE_ZERO;