logic: improved fuzzysearch score calculation

This commit is contained in:
malte_langkabel
2016-04-06 17:07:13 +02:00
parent 73e77a1baa
commit 7bc2f2b548
2 changed files with 31 additions and 11 deletions
-4
View File
@@ -267,10 +267,6 @@ std::vector<SearchMatch> Storage::getAutocompletionMatches(const std::string& qu
matches.push_back(match);
}
std::sort(matches.begin(), matches.end(), [](SearchMatch a, SearchMatch b){
return b.text.size() > a.text.size();
});
return matches;
}