I created a table using fts3
. I used following query to get a result
String query = "SELECT "+ID+" as _id," +
NAME +
" from " + TABLENAME +
" where " + NAME + " MATCH '" + inputKeyword + "';";
Log.w(TAG, query);
Which gives the list of Names based on the inputKeyword
.
But it doesn't work for multi columns,
String query = "SELECT "+ID+" as _id," +
NAME +
" from " + TABLENAME +
" where " + NAME + " MATCH '" + inputKeyword + "' AND "+ EMAILADDRESS + " MATCH '"+emailaddress+"';";
Which doesn't give any results and also saying you can't use MATCH
in this query.
How to do that?