mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor: rename clip -> smart search (#6713)
This commit is contained in:
parent
e5a70329c9
commit
ae7f174948
34 changed files with 162 additions and 119 deletions
|
|
@ -85,7 +85,7 @@
|
|||
icon: mdiImageSearch,
|
||||
title: api.getJobName(JobName.SmartSearch),
|
||||
subtitle: 'Run machine learning on assets to support smart search',
|
||||
disabled: !$featureFlags.clipEncode,
|
||||
disabled: !$featureFlags.smartSearch,
|
||||
},
|
||||
[JobName.FaceDetection]: {
|
||||
icon: mdiFaceRecognition,
|
||||
|
|
|
|||
|
|
@ -15,11 +15,11 @@
|
|||
$: showClearIcon = value.length > 0;
|
||||
|
||||
function onSearch() {
|
||||
let clipSearch = 'true';
|
||||
let smartSearch = 'true';
|
||||
let searchValue = value;
|
||||
|
||||
if (value.slice(0, 2) == 'm:') {
|
||||
clipSearch = 'false';
|
||||
smartSearch = 'false';
|
||||
searchValue = value.slice(2);
|
||||
}
|
||||
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
const params = new URLSearchParams({
|
||||
q: searchValue,
|
||||
clip: clipSearch,
|
||||
smart: smartSearch,
|
||||
});
|
||||
|
||||
showBigSearchBar = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue