diff --git a/search/processor.cpp b/search/processor.cpp index dac426b5d0..930cfbe1a0 100644 --- a/search/processor.cpp +++ b/search/processor.cpp @@ -408,7 +408,7 @@ void Processor::Search(SearchParams const & params, m2::RectD const & viewport) Geocoder::Params geocoderParams; InitGeocoder(geocoderParams); - InitPreRanker(); + InitPreRanker(geocoderParams); InitRanker(); try @@ -681,11 +681,12 @@ void Processor::InitGeocoder(Geocoder::Params & params) m_geocoder.SetParams(params); } -void Processor::InitPreRanker() +void Processor::InitPreRanker(Geocoder::Params const & geocoderParams) { PreRanker::Params params; params.m_accuratePivotCenter = GetPivotPoint(); + params.m_scale = geocoderParams.m_scale; m_preRanker.Init(params); } diff --git a/search/processor.hpp b/search/processor.hpp index fd0d147251..be70b433b9 100644 --- a/search/processor.hpp +++ b/search/processor.hpp @@ -99,7 +99,7 @@ public: void InitParams(QueryParams & params); void InitGeocoder(Geocoder::Params & params); - void InitPreRanker(); + void InitPreRanker(Geocoder::Params const & geocoderParams); void InitRanker(); void ClearCaches(); diff --git a/search/ranker.cpp b/search/ranker.cpp index 5f40c81ec6..c833532b88 100644 --- a/search/ranker.cpp +++ b/search/ranker.cpp @@ -311,11 +311,13 @@ void Ranker::MakePreResult2(Geocoder::Params const & geocoderParams, vectorGetCenter())) - return; + { + continue; + } if (p->IsStreet()) streets.push_back(p->GetID());