diff --git a/server/src/infra/typesense-schemas/asset.schema.ts b/server/src/infra/typesense-schemas/asset.schema.ts index 53729c077..d98bac0f5 100644 --- a/server/src/infra/typesense-schemas/asset.schema.ts +++ b/server/src/infra/typesense-schemas/asset.schema.ts @@ -1,6 +1,6 @@ import { CollectionCreateSchema } from 'typesense/lib/Typesense/Collections'; -export const assetSchemaVersion = 8; +export const assetSchemaVersion = 9; export const assetSchema: CollectionCreateSchema = { name: `assets-v${assetSchemaVersion}`, fields: [ @@ -35,7 +35,7 @@ export const assetSchema: CollectionCreateSchema = { { name: 'motion', type: 'bool', facet: true }, { name: 'people', type: 'string[]', facet: true, optional: true }, ], - token_separators: ['.'], + token_separators: ['.', '-', '_'], enable_nested_fields: true, default_sorting_field: 'fileCreatedAt', };