mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-02-15 20:33:26 +00:00
Make name field search in item name only
Now there is an `allNames` field that searches names of multiple things.
This commit is contained in:
parent
67666595eb
commit
88234986e6
@ -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
|
||||
|
@ -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 =>
|
||||
|
Loading…
Reference in New Issue
Block a user