Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Skip

Manav Rathi29f89ab901ae
diff --git a/web/apps/photos/src/services/searchService.ts b/web/apps/photos/src/services/searchService.ts
index be7f574a7b..d5e17c269a 100644
--- a/web/apps/photos/src/services/searchService.ts
+++ b/web/apps/photos/src/services/searchService.ts
@@ -20,7 +20,7 @@ import { getFormattedDate } from "utils/search";
import { clipService, computeClipMatchScore } from "./clip-service";
import { localCLIPEmbeddings } from "./embeddingService";
import { getLatestEntities } from "./entityService";
-import { faceIndexingStatus } from "./face/indexer";
+import { faceIndexingStatus, isFaceIndexingEnabled } from "./face/indexer";
import locationSearchService, { City } from "./locationSearchService";
const DIGITS = new Set(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]);
@@ -29,7 +29,9 @@ const CLIP_SCORE_THRESHOLD = 0.23;
export const getDefaultOptions = async () => {
return [
- await getIndexStatusSuggestion(),
+ // TODO-ML(MR): Skip this for now if indexing is disabled (eventually
+ // the indexing status should not be tied to results).
+ ...(await isFaceIndexingEnabled() ? [await getIndexStatusSuggestion()] : []),
...(await convertSuggestionsToOptions(await getAllPeopleSuggestion())),
].filter((t) => !!t);
};