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:
authorvng <viktor.govako@gmail.com>2013-02-21 23:52:39 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:51:22 +0300
commit9db034bade3b1c5f3e4bd7769f37f48c8c4355dc (patch)
tree518c8b0efa96eb0ebeafbded1c3519c49f2e1486 /indexer/search_index_builder.cpp
parentf4a9517f296862ee33899a8a5d3542d50b8075fc (diff)
Store reference to type index instead of raw type in mwm search index.
Diffstat (limited to 'indexer/search_index_builder.cpp')
-rw-r--r--indexer/search_index_builder.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indexer/search_index_builder.cpp b/indexer/search_index_builder.cpp
index 16cc651df8..42aa6cd47a 100644
--- a/indexer/search_index_builder.cpp
+++ b/indexer/search_index_builder.cpp
@@ -336,6 +336,8 @@ public:
if (types.Empty()) return;
+ Classificator const & c = classif();
+
// add names of categories of the feature
for (size_t i = 0; i < types.Size(); ++i)
{
@@ -354,7 +356,8 @@ public:
if (my::between_s(m_scales.first, m_scales.second, r.first) ||
my::between_s(m_scales.first, m_scales.second, r.second))
{
- inserter.AddToken(search::CATEGORIES_LANG, search::FeatureTypeToString(type));
+ inserter.AddToken(search::CATEGORIES_LANG,
+ search::FeatureTypeToString(c.GetIndexForType(type)));
}
}
}