aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/services
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/services')
-rw-r--r--viewer/src/services/indexsearch.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/viewer/src/services/indexsearch.ts b/viewer/src/services/indexsearch.ts
index 3e73fb1..cd3383a 100644
--- a/viewer/src/services/indexsearch.ts
+++ b/viewer/src/services/indexsearch.ts
@@ -22,12 +22,11 @@ import { Operation } from '@/@types/Operation';
22export default class IndexSearch { 22export default class IndexSearch {
23 23
24 // Results of the search (by tags) 24 // Results of the search (by tags)
25 public static search(searchTags: Tag.Search[], rootPath: string): Gallery.Item[] { 25 public static search(searchTags: Tag.Search[]): Gallery.Item[] {
26 const byOperation = this.extractTagsByOperation(searchTags); 26 const byOperation = this.extractTagsByOperation(searchTags);
27 const intersection = this.extractIntersection(byOperation); 27 const intersection = this.extractIntersection(byOperation);
28 const substraction = this.extractSubstraction(byOperation); 28 const substraction = this.extractSubstraction(byOperation);
29 return this.aggregateAll(byOperation, intersection, substraction) 29 return this.aggregateAll(byOperation, intersection, substraction);
30 .filter(item => item.path.startsWith(rootPath));
31 } 30 }
32 31
33 private static extractTagsByOperation(searchTags: Tag.Search[]): Tag.SearchByOperation { 32 private static extractTagsByOperation(searchTags: Tag.Search[]): Tag.SearchByOperation {