Skip to content

Commit 7cf0487

Browse files
committed
wip
1 parent 8e72d38 commit 7cf0487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/StructuredQueriesCore/SQLite/FTS5.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extension TableDefinition where QueryValue: FTS5 {
1313
public func bm25(
1414
_ rankings: [PartialKeyPath<Self>: Double]
1515
) -> some QueryExpression<Double> {
16-
guard !rankings.isEmpty else { return SQLQueryExpression("1") }
16+
guard !rankings.isEmpty else { return SQLQueryExpression("0") }
1717
var queryFragments: [QueryFragment] = ["\(QueryValue.self)"]
1818
var columnNameToRanking: QueryFragment = """
1919
CASE "name"

0 commit comments

Comments
 (0)