SQLite contains full-text search module called FTS3, using this
module you can easily add fast full text search to an Android
application.
First you need to create virtual table:
Your table must contains at least 1 TEXT field.
The FTS3 virtual table acts like a regular table, but you need to
manually maintain the indexes to keep referential integrity — you
should UPDATE the FTS3 table from time to time.
The full-text query in SQLite looks like this:
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/86970/viewspace-622856/ ,如需转载,请注明出处,否则将追究法律责任。