feat(web/server): Search by panorama photos (#3470)

* Add panorama filter

* Add generated api changes

* Fix naming
This commit is contained in:
PyKen
2023-07-31 10:31:57 +09:00
committed by GitHub
parent bc3f95c57c
commit 51cfe10c28
9 changed files with 78 additions and 18 deletions

View File

@@ -2924,6 +2924,14 @@
"type": "string"
}
},
{
"name": "exifInfo.projectionType",
"required": false,
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "smartInfo.objects",
"required": false,

View File

@@ -58,6 +58,11 @@ export class SearchDto {
@IsOptional()
'exifInfo.model'?: string;
@IsString()
@IsNotEmpty()
@IsOptional()
'exifInfo.projectionType'?: string;
@IsString({ each: true })
@IsArray()
@IsOptional()

View File

@@ -1,6 +1,6 @@
import { CollectionCreateSchema } from 'typesense/lib/Typesense/Collections';
export const assetSchemaVersion = 7;
export const assetSchemaVersion = 8;
export const assetSchema: CollectionCreateSchema = {
name: `assets-v${assetSchemaVersion}`,
fields: [
@@ -23,6 +23,7 @@ export const assetSchema: CollectionCreateSchema = {
{ name: 'exifInfo.make', type: 'string', facet: true, optional: true },
{ name: 'exifInfo.model', type: 'string', facet: true, optional: true },
{ name: 'exifInfo.orientation', type: 'string', optional: true },
{ name: 'exifInfo.projectionType', type: 'string', facet: true, optional: true },
// smart info
{ name: 'smartInfo.objects', type: 'string[]', facet: true, optional: true },