Catalog filtering by language works via Xapian

This commit is contained in:
Veloman Yunkan committed 2021-04-27 16:59:21 +04:00
1 parent 0c0a37073b
commit 7ccd9ffcce
3 files changed
+32 -1

No files matched your search

+13
View File
@@ -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)