diff --git a/packages/content/lib/query-builder.js b/packages/content/lib/query-builder.js index 84d3977a7..8c2c935ab 100644 --- a/packages/content/lib/query-builder.js +++ b/packages/content/lib/query-builder.js @@ -115,7 +115,8 @@ class QueryBuilder { } } - this.query = this.query.find({ $fts }) + this.query = this.query.find({ $fts }).sortByScoring() + return this }