I am using SQLite FTS extension in my iOS application. It performs well but the problem is that it matches only string prefixes (or starts with keyword search).
i.e.
SELECT FROM tablename WHERE columnname MATCH 'searchterm*'
works but
SELECT FROM tablename WHERE columnname MATCH '*searchterm'
or
SELECT FROM tablename WHERE columnname MATCH '*searchterm*'
does not.
Is there any workaround for this or any way to use FTS to build a query similar to "LIKE '%searchterm%'" query.
EDIT:
As pointed out by Retterdesdialogs, storing the entire text in reverse order and running a prefix search on reverse string is a possible solution for ends with/suffix search problem, which was my original question, but it wont work for 'contains' search. I have updated the question accordingly.