I am using FTS3 in sqlite in an android project. The problem is that when I search for the word "or" the database expect more words.
"SELECT * FROM words WHERE Palabra MATCH '"+word+"'";
This works well except when the word is "or".
How can I search for the word "or" in the database?
Here is the error:
android.database.sqlite.SQLiteException: malformed MATCH expression: [OR] (code 1)
at android.database.sqlite.SQLiteConnection.nativeExecuteForCursorWindow(Native Method)
at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:845)
at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836)
at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)
at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:144)
at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
Thanks