frontend support for fulltext sorting

This commit is contained in:
jonaswinkler
2021-05-15 18:48:39 +02:00
parent f3703fc6e3
commit 96f4924911
5 changed files with 56 additions and 8 deletions

View File

@@ -23,6 +23,11 @@ export const DOCUMENT_SORT_FIELDS = [
{ field: 'modified', name: $localize`Modified` }
]
export const DOCUMENT_SORT_FIELDS_FULLTEXT = [
...DOCUMENT_SORT_FIELDS,
{ field: 'score', name: $localize`:Score is a value returned by the full text search engine and specifies how well a result matches the given query:Search score` }
]
export interface SelectionDataItem {
id: number
document_count: number