[search] Fix bug in Query: m_prefix wasn't cleared.

This commit is contained in:
Yury Melnichek 2011-10-20 13:23:23 +02:00 committed by Alex Zolotarev
parent c058e5fca8
commit 6809f67d42

View file

@ -108,6 +108,7 @@ void Query::Search(string const & query,
m_rawQuery = query;
m_uniQuery = NormalizeAndSimplifyString(m_rawQuery);
m_tokens.clear();
m_prefix.clear();
search::Delimiters delims;
SplitUniString(m_uniQuery, MakeBackInsertFunctor(m_tokens), delims);