v0.2.0
This commit is contained in:
1 parent
fc81ecafd6
commit
dc57aa7089
89 files changed
+5290
-1551
No files matched your search
+14
-12
@@ -362,18 +362,20 @@ pub async fn search_messages(
|
||||
if !parsed.text.is_empty()
|
||||
&& results.len() < limit
|
||||
&& let Ok(user_index) = search_engine.open_user_index(&session.user_hash)
|
||||
&& let Ok((tantivy_results, _)) = user_index.search(&SearchQuery {
|
||||
text: parsed.text,
|
||||
subject_only: subject,
|
||||
folder,
|
||||
from,
|
||||
to,
|
||||
date_from,
|
||||
date_to,
|
||||
has_attachment,
|
||||
limit,
|
||||
offset: if select_all { 0 } else { search_offset },
|
||||
})
|
||||
&& let Ok((tantivy_results, _)) = user_index
|
||||
.search(&SearchQuery {
|
||||
text: parsed.text,
|
||||
subject_only: subject,
|
||||
folder,
|
||||
from,
|
||||
to,
|
||||
date_from,
|
||||
date_to,
|
||||
has_attachment,
|
||||
limit,
|
||||
offset: if select_all { 0 } else { search_offset },
|
||||
})
|
||||
.await
|
||||
{
|
||||
let data_dir2 = config.data_dir.clone();
|
||||
let user_hash2 = session.user_hash.clone();
|
||||
|
||||
Reference in new issue
Block a user