stephencelis/SQLite.swift

Add column weights to FTS order by Rank

Aperta

#1016 aperta il 30 lug 2020

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

Metriche repository

Star
 (10.145 stelle)
Metriche merge PR
 (Metriche PR in attesa)

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