Skip to content

Commit

Permalink
Revert title index search order
Browse files Browse the repository at this point in the history
  • Loading branch information
BPerlakiH authored and kelson42 committed Sep 18, 2024
1 parent c5cd822 commit 990e51f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwiftUI/Model/SearchOperation/SearchOperation.mm
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ - (void)performSearch {
std::string zimFileID_C = [[[zimFileID UUIDString] lowercaseString] cStringUsingEncoding:NSUTF8StringEncoding];
try {
auto archive = allArchives->at(zimFileID_C);
[self addTitleSearchResults:archive count: 25];
if (archive.hasFulltextIndex()) {
[self addIndexSearchResults:archive count: 25];
}
[self addTitleSearchResults:archive count: 25];
} catch (std::exception &e) {
NSLog(@"perform search exception: %s", e.what());
}
Expand Down

0 comments on commit 990e51f

Please sign in to comment.