SQLite full text search catalog

前端 未结 3 848
感动是毒
感动是毒 2021-01-16 00:19

I wonder if the following is possible with fts(3/4) for SQLite. I created a table with some data using fts3.

If i for example search for e* i get everything that sta

3条回答
  •  花落未央
    2021-01-16 01:00

    http://www.sqlite.org/fts3.html#section_3

           SELECT * FROM docs WHERE docs MATCH 'lin*';
    

    Will return the docs that contain a word starting with "lin". You only want the words that match, not the context? Maybe the "snippets" feature will help you. And you may find this thread of interest:

    http://www.mail-archive.com/sqlite-users@sqlite.org/msg49345.html

提交回复
热议问题