Catalog filtering by language works via Xapian

This commit is contained in:
Veloman Yunkan
2021-04-12 12:29:06 +04:00
parent 0c0a37073b
commit 7ccd9ffcce
3 changed files with 32 additions and 1 deletions

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)