stephencelis/SQLite.swift

Add column weights to FTS order by Rank

Open

#1 016 ouverte le 30 juil. 2020

Voir sur GitHub
 (6 commentaires) (1 réaction) (0 assignés)Swift (1 618 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (10 145 stars)
Métriques de merge PR
 (Merge moyen 6j 17h) (4 PRs mergées en 30 j)

Description

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?

Guide contributeur