mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01:00
lots of changes for the new unified search
This commit is contained in:
parent
630cd814e2
commit
b6ff88645b
29 changed files with 302 additions and 543 deletions
|
|
@ -4,6 +4,15 @@ import { PaperlessTag } from './paperless-tag'
|
|||
import { PaperlessDocumentType } from './paperless-document-type'
|
||||
import { Observable } from 'rxjs'
|
||||
|
||||
export interface SearchHit {
|
||||
|
||||
score?: number
|
||||
rank?: number
|
||||
|
||||
highlights?: string
|
||||
|
||||
}
|
||||
|
||||
export interface PaperlessDocument extends ObjectWithId {
|
||||
|
||||
correspondent$?: Observable<PaperlessCorrespondent>
|
||||
|
|
@ -40,4 +49,6 @@ export interface PaperlessDocument extends ObjectWithId {
|
|||
|
||||
archive_serial_number?: number
|
||||
|
||||
__search_hit__?: SearchHit
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue