I'm working on a search tool, the words (to be searched) are in object array first I search the database(about 450k rows) using FTS4 and sqlite. This works fast, the SQL I'm using is:
String s = "select * from fts_sggs where word_text MATCH ? ";
but then, I need some extra words which are a part of the same table. The FTS4 doesn't seem to work here. The SQL is:
String s ="select * from fts_sggs where word_number BETWEEN " + wordnumlo + " AND " + wordnumhi + " and page_number =" + pgnum;
I'm a newbie to SQL Programming, I need a single query that could perform both tasks fast. this is being done in java which is terribly slow.