mirror of https://github.com/M66B/FairEmail.git
FTS index without content
This commit is contained in:
parent
99108b951c
commit
7ee1c00cb8
|
@ -334,8 +334,7 @@ public interface DaoMessage {
|
||||||
@Transaction
|
@Transaction
|
||||||
@Query("SELECT message.id FROM message" +
|
@Query("SELECT message.id FROM message" +
|
||||||
" JOIN folder_view AS folder ON folder.id = message.folder" +
|
" JOIN folder_view AS folder ON folder.id = message.folder" +
|
||||||
" WHERE content" +
|
" WHERE NOT fts" +
|
||||||
" AND NOT fts" +
|
|
||||||
" AND folder.type <> '" + EntityFolder.OUTBOX + "'" +
|
" AND folder.type <> '" + EntityFolder.OUTBOX + "'" +
|
||||||
" ORDER BY message.received")
|
" ORDER BY message.received")
|
||||||
Cursor getMessageFts();
|
Cursor getMessageFts();
|
||||||
|
|
|
@ -81,10 +81,11 @@ public class WorkerFts extends Worker {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
File file = message.getFile(context);
|
String text = null;
|
||||||
String text = HtmlHelper.getFullText(file);
|
if (message.content) {
|
||||||
if (text == null)
|
File file = message.getFile(context);
|
||||||
text = "";
|
text = HtmlHelper.getFullText(file);
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
sdb.beginTransaction();
|
sdb.beginTransaction();
|
||||||
|
|
Loading…
Reference in New Issue