stephencelis/SQLite.swift

Add column weights to FTS order by Rank

Open

#1016 aperta il 30 lug 2020

Vedi su GitHub
 (6 commenti) (1 reazione) (0 assegnatari)Swift (1618 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (10.145 star)
Metriche merge PR
 (Merge medio 6g 17h) (4 PR mergiate in 30 g)

Descrizione

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?

Guida contributor