Fix issue with @codebase provider when n becomes odd due to a divide by 2 during the full text search portion of the query. (#1204)
This commit is contained in:
parent
80bc83b878
commit
804e0809a1
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ export class FullTextSearchCodebaseIndex implements CodebaseIndex {
|
|||
let results = await db.all(query, [
|
||||
...tagStrings,
|
||||
...(filterPaths || []),
|
||||
n,
|
||||
Math.ceil(n),
|
||||
]);
|
||||
|
||||
results = results.filter((result) => result.rank <= bm25Threshold);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue