diff --git a/server/src/infra/repositories/typesense.repository.ts b/server/src/infra/repositories/typesense.repository.ts index 9a03a104ef..40bd71ddb3 100644 --- a/server/src/infra/repositories/typesense.repository.ts +++ b/server/src/infra/repositories/typesense.repository.ts @@ -275,7 +275,7 @@ export class TypesenseRepository implements ISearchRepository { collection: faceSchema.name, q: '*', vector_query: `embedding:([${input.join(',')}], k:5)`, - per_page: 250, + per_page: 5, filter_by: this.buildFilterBy('ownerId', filters.ownerId, true), } as any, ], @@ -291,7 +291,7 @@ export class TypesenseRepository implements ISearchRepository { collection: assetSchema.name, q: '*', vector_query: `smartInfo.clipEmbedding:([${input.join(',')}], k:100)`, - per_page: 250, + per_page: 100, facet_by: this.getFacetFieldNames(SearchCollection.ASSETS), filter_by: this.getAssetFilters(filters), } as any,