mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
Catalog filtering by category works via Xapian
This commit is contained in:
@ -502,6 +502,15 @@ TEST_F(LibraryTest, filterByCategory)
|
||||
"Géographie par Wikipédia",
|
||||
"Mathématiques"
|
||||
);
|
||||
|
||||
EXPECT_FILTER_RESULTS(kiwix::Filter().query("category:category_element_overrides_tags"),
|
||||
"Géographie par Wikipédia",
|
||||
"Mathématiques"
|
||||
);
|
||||
|
||||
EXPECT_FILTER_RESULTS(kiwix::Filter().query("category_element_overrides_tags"),
|
||||
/* no results */
|
||||
);
|
||||
}
|
||||
|
||||
TEST_F(LibraryTest, filterByMaxSize)
|
||||
|
Reference in New Issue
Block a user