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

Is it possible to use FTS5 module for full text search? #78

Closed
alexkmbk opened this issue Feb 5, 2022 · 2 comments
Closed

Is it possible to use FTS5 module for full text search? #78

alexkmbk opened this issue Feb 5, 2022 · 2 comments
Assignees

Comments

@alexkmbk
Copy link

alexkmbk commented Feb 5, 2022

Here is the explanation of the mechanism - https://www.sqlite.org/fts5.html

But somehow the FTS5 module should be installed.
How to do it for the gorm SQLite driver?

@glebarez
Copy link
Contributor

FTS5 is enabled in pure-go driver. You may try it for your purposes.

https://github.com/glebarez/sqlite

@ankitrgadiya
Copy link

This Sqlite driver internally uses mattn/go-sqlite3 which supports FTS5. You can enable it using Build flags as per the example here.

@jinzhu jinzhu closed this as completed Mar 25, 2022
samuelncui pushed a commit to samuelncui/gorm-sqlite that referenced this issue Oct 4, 2023
…hub.com/glebarez/go-sqlite-1.20.3

Bump github.com/glebarez/go-sqlite from 1.20.0 to 1.20.3
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

4 participants