stephencelis/SQLite.swift
Auf GitHub ansehenAdd column weights to FTS order by Rank
Open
#1.016 geöffnet am 30. Juli 2020
enhancementhelp wanted
Repository-Metriken
- Stars
- (10.145 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 6T 17h) (4 gemergte PRs in 30 T)
Beschreibung
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?