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:
@@ -464,6 +464,11 @@ SearchResult SearchIndex::rescoreText(
|
||||
textIndices.push_back(idx - (fulltext.size() - text.size()));
|
||||
}
|
||||
}
|
||||
// ignore rescoring if result is too long
|
||||
else if (maxBestScoredLength > 0 && fulltext.size() > maxBestScoredLength * 2)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
// try if match is within text
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user