stephencelis/SQLite.swift

Add column weights to FTS order by Rank

Open

#1,016 opened on 2020年7月30日

GitHub で見る
 (6 comments) (1 reaction) (0 assignees)Swift (10,145 stars) (1,618 forks)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?

コントリビューターガイド

Add column weights to FTS order by Rank · stephencelis/SQLite.swift#1016 | Good First Issue