mirror of
https://github.com/immich-app/immich.git
synced 2026-03-22 23:58:58 +03:00
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:
@@ -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,
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user