Skip to content

Commit 1936a0e

Browse files
authored
feat: sort by score (most relevant first) when searching (#671)
1 parent 19dccee commit 1936a0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/content/lib/query-builder.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ class QueryBuilder {
115115
}
116116
}
117117

118-
this.query = this.query.find({ $fts })
118+
this.query = this.query.find({ $fts }).sortByScoring()
119+
119120
return this
120121
}
121122

0 commit comments

Comments
 (0)