stephencelis/SQLite.swift

Add column weights to FTS order by Rank

Offen

#1.016 geöffnet am 30.07.2020

 (6 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Swift (1.618 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (10.145 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

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?

Contributor Guide