0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-07 00:50:23 -05:00

fix(server): CLIP search return empty result (#2018)

This commit is contained in:
Alex 2023-03-19 08:20:23 -05:00 committed by GitHub
parent 9a332074c7
commit 7ce64ecf05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,6 +107,7 @@ export class SearchService {
case SearchStrategy.CLIP:
const clip = await this.machineLearning.encodeText(query);
assets = await this.searchRepository.vectorSearch(clip, filters);
break;
case SearchStrategy.TEXT:
default:
assets = await this.searchRepository.searchAssets(query, filters);