mirror of
https://github.com/kiwix/libkiwix.git
synced 2026-10-26 19:09:32 -04:00
Catalog filtering by language works via Xapian
This commit is contained in:
1 parent
0c0a37073b
commit
7ccd9ffcce
3 files changed
+32
-1
No files matched your search
@@ -353,6 +353,19 @@ TEST_F(LibraryTest, filterByLanguage)
|
||||
"Ray Charles",
|
||||
"TED talks - Business"
|
||||
);
|
||||
|
||||
EXPECT_FILTER_RESULTS(kiwix::Filter().query("lang:eng"),
|
||||
"Granblue Fantasy Wiki",
|
||||
"Islam Stack Exchange",
|
||||
"Movies & TV Stack Exchange",
|
||||
"Mythology & Folklore Stack Exchange",
|
||||
"Ray Charles",
|
||||
"TED talks - Business"
|
||||
);
|
||||
|
||||
EXPECT_FILTER_RESULTS(kiwix::Filter().query("eng"),
|
||||
/* no results */
|
||||
);
|
||||
}
|
||||
|
||||
TEST_F(LibraryTest, filterByTags)
|
||||
|
||||
Reference in new issue
Block a user