feat: sort smart search

Smart search currently returns a list of assets by their score. It would
be nice if we could instead filter assets, and then list them by date.
This is the default behaviour of other platforms.
This commit is contained in:
Thomas Way
2026-02-24 10:28:56 +00:00
parent 1d25267f22
commit d416e225e6
17 changed files with 705 additions and 21 deletions

View File

@@ -22063,6 +22063,14 @@
"description": "Filter by OCR text content",
"type": "string"
},
"order": {
"allOf": [
{
"$ref": "#/components/schemas/AssetOrder"
}
],
"description": "Sort order by date. If not provided, results are sorted by relevance."
},
"page": {
"description": "Page number",
"minimum": 1,

View File

@@ -1893,6 +1893,8 @@ export type SmartSearchDto = {
model?: string | null;
/** Filter by OCR text content */
ocr?: string;
/** Sort order by date. If not provided, results are sorted by relevance. */
order?: AssetOrder;
/** Page number */
page?: number;
/** Filter by person IDs */