From 9edc0591e5459747797883596214d2c989fddf04 Mon Sep 17 00:00:00 2001 From: Yuri Gorshenin Date: Thu, 9 Jun 2016 23:46:27 +0300 Subject: [PATCH] Review fixes. --- search/engine.cpp | 1 + search/processor.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/search/engine.cpp b/search/engine.cpp index e7a7809e6c..a761e3e556 100644 --- a/search/engine.cpp +++ b/search/engine.cpp @@ -284,6 +284,7 @@ void Engine::DoSearch(SearchParams const & params, m2::RectD const & viewport, bool const viewportSearch = params.GetMode() == Mode::Viewport; // Initialize query processor. + processor.Reset(); processor.Init(viewportSearch); handle->Attach(processor); MY_SCOPE_GUARD(detach, [&handle] diff --git a/search/processor.cpp b/search/processor.cpp index ba2c445a88..d51bc74261 100644 --- a/search/processor.cpp +++ b/search/processor.cpp @@ -245,8 +245,6 @@ Processor::Processor(Index & index, CategoriesHolder const & categories, void Processor::Init(bool viewportSearch) { - Reset(); - m_tokens.clear(); m_prefix.clear(); m_preRanker.Clear();