logic: Fixed issues in search

* fixed bad search performance when rescoring
* fixed commands had no text in autocompletions
* no autocompletions when entering fulltext search query
* check query actuality before processing autocompletions
This commit is contained in:
Eberhard Graether
2016-11-15 08:12:14 -08:00
parent 96ee2b997c
commit a35e8a53de
10 changed files with 38 additions and 5 deletions
+5
View File
@@ -37,6 +37,11 @@ void QtSearchView::refreshView()
m_refreshViewFunctor();
}
std::string QtSearchView::getQuery() const
{
return m_widget->query().toStdString();
}
void QtSearchView::setMatches(const std::vector<SearchMatch>& matches)
{
m_setMatchesFunctor(matches);
+1
View File
@@ -19,6 +19,7 @@ public:
virtual void refreshView();
// SearchView implementation
virtual std::string getQuery() const;
virtual void setMatches(const std::vector<SearchMatch>& matches);
virtual void setFocus();
virtual void findFulltext();