We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ce4f24 commit 73e0b36Copy full SHA for 73e0b36
src/filter.cc
@@ -24,12 +24,12 @@ void filter_internal(const std::vector<CandidateString> &candidates,
24
const Options &options,
25
size_t max_results,
26
CandidateScorePriorityQueue &results) {
27
+ const auto scoreProvider = options.usePathScoring ? path_scorer_score : scorer_score;
28
for (size_t i = 0, len = candidates.size(); i < len; i++) {
29
const auto &candidate = candidates[i];
30
if (candidate.empty()) {
31
continue;
32
}
- const auto scoreProvider = options.usePathScoring ? path_scorer_score : scorer_score;
33
auto score = scoreProvider(candidate, query, options);
34
if (score > 0) {
35
results.emplace(score, start_index + i);
0 commit comments