Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

core: look into topics when searching notebooks

Abdullah Attac9545905857f
diff --git a/packages/core/api/lookup.js b/packages/core/api/lookup.js
index 1604fd3ac..2d1a823e1 100644
--- a/packages/core/api/lookup.js
+++ b/packages/core/api/lookup.js
@@ -42,7 +42,12 @@ export default class Lookup {
}
notebooks(array, query) {
- return search(array, query, (n) => `${n.title} ${n.description}`);
+ return search(
+ array,
+ query,
+ (n) =>
+ `${n.title} ${n.description} ${n.topics.map((t) => t.title).join(" ")}`
+ );
}
topics(array, query) {