Commit 9e1fd446 authored by Mark Wagner's avatar Mark Wagner
Browse files

bugfix 5342861 The search result highlighted result is not seen on the screen for MMS

part 2 of a 2 part fix.

Change-Id: I419ecfbe6441e31cd89e305b89b4bdd0dd5d6651
parent c40bd51d
......@@ -349,7 +349,11 @@ public class MmsSmsProvider extends ContentProvider {
break;
case URI_SEARCH_SUGGEST: {
String searchString = uri.getQueryParameter("pattern");
String query = String.format("SELECT _id, index_text, source_id, table_to_use, offsets(words) FROM words WHERE index_text MATCH '%s*' LIMIT 50;", searchString);
// find the words which match the pattern using the snippet function. The
// snippet function parameters mainly describe how to format the result.
// See http://www.sqlite.org/fts3.html#section_4_2 for details.
String query = String.format("SELECT snippet(words, '', ' ', '', 1, 1) as snippet FROM words WHERE index_text MATCH '%s*' ORDER BY snippet LIMIT 50;", searchString);
if ( sortOrder != null
|| selection != null
|| selectionArgs != null
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment