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 starts with ^e But can i also search the index/catalog for the specific words that starts with e?
So that i only get the results of that words back like; elliot, elo,eehh.
the documentation of the snippet function is rather vague regarding its 6th parameter because the algorithm uses a best-score approach to find the snippet.
Nevertheless in my application i get a clean extract of the original terms I am looking for with the request :
It may help in your case ; this in-database solution helped me because i didn't want to extract the terms in code located outside of the db. It works if you are searching for single words (no space, OR, .. in the MATCH query)
http://www.sqlite.org/fts3.html#section_3
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
The FTS engine provides that information via the
offsets
virtual function.As the documentation says:
How to extract that information is up to you and how you integrate your code with SQLite.