mirror of
https://github.com/immich-app/immich.git
synced 2026-03-10 12:17:56 +03:00
refactor: rename clip -> smart search (#6713)
This commit is contained in:
@@ -31,13 +31,13 @@ class SearchService {
|
||||
|
||||
Future<List<Asset>?> searchAsset(
|
||||
String searchTerm, {
|
||||
bool clipEnable = true,
|
||||
bool smartSearch = true,
|
||||
}) async {
|
||||
// TODO search in local DB: 1. when offline, 2. to find local assets
|
||||
try {
|
||||
final SearchResponseDto? results = await _apiService.searchApi.search(
|
||||
query: searchTerm,
|
||||
clip: clipEnable,
|
||||
smart: smartSearch,
|
||||
);
|
||||
if (results == null) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user