diff --git a/modules/restapi/src/main/resources/docspell-openapi.yml b/modules/restapi/src/main/resources/docspell-openapi.yml index 20152dfc..b2698722 100644 --- a/modules/restapi/src/main/resources/docspell-openapi.yml +++ b/modules/restapi/src/main/resources/docspell-openapi.yml @@ -3354,8 +3354,13 @@ components: - outgoing name: type: string + description: | + Search in item names. allNames: type: string + description: | + Search in item names, correspondents, concerned entities + and notes. corrOrg: type: string format: ident diff --git a/modules/store/src/main/scala/docspell/store/queries/QItem.scala b/modules/store/src/main/scala/docspell/store/queries/QItem.scala index de47f31b..bad0aa59 100644 --- a/modules/store/src/main/scala/docspell/store/queries/QItem.scala +++ b/modules/store/src/main/scala/docspell/store/queries/QItem.scala @@ -291,7 +291,7 @@ object QItem { IC.state.prefix("i").isOneOf(q.states), IC.incoming.prefix("i").isOrDiscard(q.direction), name - .map(n => or(IC.name.prefix("i").lowerLike(n), IC.notes.prefix("i").lowerLike(n))) + .map(n => IC.name.prefix("i").lowerLike(n)) .getOrElse(Fragment.empty), allNames .map(n =>