stephencelis/SQLite.swift

Add column weights to FTS order by Rank

Ouverte

#1 016 ouverte le 30 juil. 2020

 (6 commentaires) (1 réaction) (0 personne assignée)Swift (1 618 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (10 145 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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