From 4290f26d7cf4f51ab6646fdb0d67e4f891e2249f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 4 Feb 2020 18:32:33 -0500 Subject: [PATCH] Don't search child items in "Title, Creator, Year" mode They can't match, so there's no need to include them. This should speed up "Title, Creator, Year" searches. --- chrome/content/zotero/xpcom/collectionTreeRow.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/xpcom/collectionTreeRow.js b/chrome/content/zotero/xpcom/collectionTreeRow.js index 3ee287a0b1..a5a65929ad 100644 --- a/chrome/content/zotero/xpcom/collectionTreeRow.js +++ b/chrome/content/zotero/xpcom/collectionTreeRow.js @@ -355,6 +355,10 @@ Zotero.CollectionTreeRow.prototype.getSearchObject = Zotero.Promise.coroutine(fu if (this.isTrash()) { s2.addCondition('deleted', 'true'); } + // Don't search child items in "Title, Creator, Year" mode + if (Zotero.Prefs.get('search.quicksearch-mode') == 'titleCreatorYear') { + includeScopeChildren = false; + } s2.setScope(s, includeScopeChildren); if (this.searchText) {