diff --git a/modules/store/src/main/scala/docspell/store/records/TagItemName.scala b/modules/store/src/main/scala/docspell/store/records/TagItemName.scala
index 9b7d8b77..71d261bf 100644
--- a/modules/store/src/main/scala/docspell/store/records/TagItemName.scala
+++ b/modules/store/src/main/scala/docspell/store/records/TagItemName.scala
@@ -36,7 +36,7 @@ object TagItemName {
 
   def itemsInAllCategories(cats: NonEmptyList[String]): Select =
     intersect(
-      cats.map(cat => Select(ti.itemId.s, taggedItems, t.category === cat).distinct)
+      cats.map(cat => Select(ti.itemId.s, taggedItems, t.category.lowerEq(cat)).distinct)
     )
 
   def itemsWithEitherTag(tags: NonEmptyList[Ident]): Select =