stephencelis/SQLite.swift

Add column weights to FTS order by Rank

开放

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

 (6 条评论) (1 个反应) (0 位负责人)Swift (1,618 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (10,145 个星标)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 4 个 PR)

描述

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?

贡献者指南