stephencelis/SQLite.swift

Add column weights to FTS order by Rank

Aberta

#1.016 aberto em 30 de jul. de 2020

 (6 comentários) (1 reação) (0 responsável)Swift (1.618 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (10.145 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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?

Guia do colaborador