mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-06 15:15:58 +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
|
- outgoing
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
|
description: |
|
||||||
|
Search in item names.
|
||||||
allNames:
|
allNames:
|
||||||
type: string
|
type: string
|
||||||
|
description: |
|
||||||
|
Search in item names, correspondents, concerned entities
|
||||||
|
and notes.
|
||||||
corrOrg:
|
corrOrg:
|
||||||
type: string
|
type: string
|
||||||
format: ident
|
format: ident
|
||||||
|
@ -291,7 +291,7 @@ object QItem {
|
|||||||
IC.state.prefix("i").isOneOf(q.states),
|
IC.state.prefix("i").isOneOf(q.states),
|
||||||
IC.incoming.prefix("i").isOrDiscard(q.direction),
|
IC.incoming.prefix("i").isOrDiscard(q.direction),
|
||||||
name
|
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),
|
.getOrElse(Fragment.empty),
|
||||||
allNames
|
allNames
|
||||||
.map(n =>
|
.map(n =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user