The following approach worked for me:
- Use
String.format()
to constructselectionArgs
, using search terms as arguments. - Use single argument to construct
selection
In code:
final String selection = "table MATCH ?"
final String[] selectionArgs = { String.format("column1:%s* OR column2:%s*", term1, term2) };