mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-26 02:45:31 +01:00
Fixed fts4 search suggestions
This commit is contained in:
@@ -137,7 +137,8 @@ public class Fts4DbHelper extends SQLiteOpenHelper {
|
||||
try (Cursor cursor = db.rawQuery(
|
||||
"SELECT term FROM message_terms" +
|
||||
" WHERE term LIKE ?" +
|
||||
" ORDER BY occurrences DESC" +
|
||||
" GROUP BY term" +
|
||||
" ORDER BY SUM(occurrences) DESC" +
|
||||
" LIMIT " + max,
|
||||
new String[]{query})) {
|
||||
while (cursor != null && cursor.moveToNext())
|
||||
|
||||
Reference in New Issue
Block a user