stephencelis/SQLite.swift

Add column weights to FTS order by Rank

オープン

#1,016 opened on 2020/07/30

 (6 件のコメント) (1 件のリアクション) (0 人の担当者)Swift (1,618 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (10,145 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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?

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