Fix search index generation for World.

This commit is contained in:
vng 2011-08-17 13:15:50 +03:00 committed by Alex Zolotarev
parent b4144ec188
commit ffb06fde55
2 changed files with 3 additions and 6 deletions

View file

@ -117,7 +117,8 @@ int main(int argc, char ** argv)
// load classificator only if necessary
if (FLAGS_generate_features || FLAGS_generate_geometry ||
FLAGS_generate_index || FLAGS_calc_statistics || FLAGS_dump_types)
FLAGS_generate_index || FLAGS_generate_search_index ||
FLAGS_calc_statistics || FLAGS_dump_types)
{
classificator::Read(pl.GetReader("drawing_rules.bin"),
pl.GetReader("classificator.txt"),

View file

@ -158,14 +158,10 @@ public:
UpdateIndexes();
/// @todo Keep this until World.mwm has search index.
static bool isWorld = true;
//if (m_indexes.back()->IsWorldData())
if (isWorld)
if (m_indexes.back()->IsWorldData())
{
ASSERT ( !m_pWorldSearchInfo.get(), () );
m_pWorldSearchInfo.reset(m_indexes.back()->GetSearchInfo());
isWorld = false;
}
}