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?

貢獻者指南