[search] Index airport codes for search.

This commit is contained in:
tatiana-yan 2018-10-09 18:28:03 +03:00 committed by mpimenov
parent 619074e79d
commit d44c80bcf5

View file

@ -290,6 +290,13 @@ public:
if (types.Empty())
return;
if (ftypes::IsAirportChecker::Instance()(types))
{
string const iata = f.GetMetadata().Get(feature::Metadata::FMD_AIRPORT_IATA);
if (!iata.empty())
inserter(StringUtf8Multilang::kDefaultCode, iata);
}
Classificator const & c = classif();
vector<uint32_t> categoryTypes;