stephencelis/SQLite.swift

Add column weights to FTS order by Rank

Open

#1,016 创建于 2020年7月30日

在 GitHub 查看
 (6 评论) (1 反应) (0 负责人)Swift (10,145 star) (1,618 fork)batch import
enhancementhelp wanted

描述

As far as I can tell, you can't currently run a Full-text search and order by rank in SQLite.swift.

SELECT * FROM fts WHERE fts MATCH ? ORDER BY bm25(fts);
SELECT * FROM fts WHERE fts MATCH ? ORDER BY rank;

Is this feature currently available? If not, how do we order the results of a Full-text search by relevance? Is there currently a workaround?

贡献者指南