Skip to content
Discussion options

You must be logged in to vote

The indexes that are applied to collections are extendable (they are used by the query engine to loop up matching rows), and so it's possible to create a FTS index using something like BM25. We plan to get to this, but current priorities are to stabilise and finish the incremental sync implementation.

In my mind we end up with an api like this (after indexing the content column):

q
  .from({ item: itemsCollection })
  .where(({ item }) => fts.like(item.content, 'something')
  .select(({ item }) => {
    ...item,
    score: fts.score(item.content, 'something')
  })

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ouvreboite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants