Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为了在 SQLite 上使用 FTS,我必须使用正确的配置对其进行编译。它起作用了,当我在 shell 中键入“sqlite3”时,我可以使用全文搜索。
不幸的是,在我的 Rails 应用程序中,使用 sqlite3 gem,我收到以下错误:
SQLite3::SQLException: 没有这样的模块: fts4: SELECT "items".* FROM "items"
似乎 gem 没有指向正确的 SQLite 版本。有什么线索吗?
您是否尝试过重建您的sqlite3宝石?这对我有用。
sqlite3