Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add extensions? (fts4 and spellfix1) #32

Open
lassebomh opened this issue Oct 2, 2021 · 2 comments
Open

How to add extensions? (fts4 and spellfix1) #32

lassebomh opened this issue Oct 2, 2021 · 2 comments

Comments

@lassebomh
Copy link

lassebomh commented Oct 2, 2021

I am trying to create a fuzzy full-text search for a website and I'm quite lost as to how one would add extensions into absurd-sql.

The extensions are fts4 and spellfix1.

Any solutions?

@quolpr
Copy link
Contributor

quolpr commented Oct 3, 2021

What I did:

  1. Cloned https://github.com/jlongster/sql.js
  2. https://github.com/jlongster/sql.js/blob/master/Makefile#L20
  3. Compiled it, and uploaded it to my npm

Here is the commit example where I enabled FTS5 quolpr/sql.js@343e35d

Then in package.json instead of @jlongster/sql.js you need to put your own package name(like @lassebomh/sql.js)

Also check how to compile — https://github.com/sql-js/sql.js/blob/master/CONTRIBUTING.md#host-based-configuration-not-recommended

@samueljseay
Copy link

Fwiw FTS4 is already enabled and available (enabling fts3 enables fts4): https://github.com/jlongster/sql.js/blob/master/Makefile#L24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants