Catalog filtering by book name works via Xapian

This commit is contained in:
Veloman Yunkan
2021-04-11 23:35:21 +04:00
parent 8287f351e7
commit 415c65cf03
3 changed files with 36 additions and 2 deletions

View File

@ -486,6 +486,14 @@ TEST_F(LibraryTest, filterByName)
EXPECT_FILTER_RESULTS(kiwix::Filter().name("wikibooks_de"),
"An example ZIM archive"
);
EXPECT_FILTER_RESULTS(kiwix::Filter().query("name:wikibooks_de"),
"An example ZIM archive"
);
EXPECT_FILTER_RESULTS(kiwix::Filter().query("wikibooks_de"),
/* no results */
);
}
TEST_F(LibraryTest, filterByCategory)