From 6ebc77cbba96924dc1cd01d7ce02662bf7f1f8a1 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Thu, 4 Apr 2019 07:53:00 +0100 Subject: [PATCH] Desktop: Fix: Goto Anything results were displayed lowercase --- ReactNativeClient/lib/services/SearchEngine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactNativeClient/lib/services/SearchEngine.js b/ReactNativeClient/lib/services/SearchEngine.js index 825a9be703..3c357d019f 100644 --- a/ReactNativeClient/lib/services/SearchEngine.js +++ b/ReactNativeClient/lib/services/SearchEngine.js @@ -369,7 +369,7 @@ class SearchEngine { return this.basicSearch(query); } else { const parsedQuery = this.parseQuery(query); - const sql = 'SELECT notes_fts.id, notes_fts.title, offsets(notes_fts) AS offsets, notes.user_updated_time, notes.is_todo, notes.todo_completed, notes.parent_id FROM notes_fts LEFT JOIN notes ON notes_fts.id = notes.id WHERE notes_fts MATCH ?' + const sql = 'SELECT notes_fts.id, notes_fts.title AS normalized_title, offsets(notes_fts) AS offsets, notes.title, notes.user_updated_time, notes.is_todo, notes.todo_completed, notes.parent_id FROM notes_fts LEFT JOIN notes ON notes_fts.id = notes.id WHERE notes_fts MATCH ?' try { const rows = await this.db().selectAll(sql, [query]); this.orderResults_(rows, parsedQuery);