File tree Expand file tree Collapse file tree 1 file changed +1
-0
lines changed
Expand file tree Collapse file tree 1 file changed +1
-0
lines changed Original file line number Diff line number Diff line change @@ -361,6 +361,7 @@ void fuzzySearchRecursive(
361361 // TODO: improve prefix searching performance (run time and stop detection)
362362 // Eligible as prefix candidate? searching for prefix, current word and query word same until `token_index`, and cost at word size within bound.
363363 // [Bug?] editDistanceAt at this stage is either 0 or leftover from last time we searched till word.size().
364+ // If bug, this can be replaced with .editDistanceAt(token_index) + cost_insert_ * (word.size() - token_index)
364365 auto isWordPrefix = params.search_type_ == LatinFuzzySearchType::ProximityOrPrefix &&
365366 state.isPrefixAt (token_index) &&
366367 (prefixCost = state.editDistanceAt (word.size ())) <= state.weights_ .max_cost_sum_ ;
You can’t perform that action at this time.
0 commit comments