From 55bcb79ed5f879a8dbc90c240c5c680230095aa3 Mon Sep 17 00:00:00 2001 From: Comfy Org PR Bot Date: Tue, 16 Dec 2025 06:17:13 +0900 Subject: [PATCH] [backport core/1.34] feat: improve search alg in templates (#7514) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backport of #7377 to `core/1.34` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7514-backport-core-1-34-feat-improve-search-alg-in-templates-2ca6d73d365081dfb99fef48cb5e3abe) by [Unito](https://www.unito.io) Co-authored-by: Christian Byrne --- src/composables/useTemplateFiltering.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/composables/useTemplateFiltering.ts b/src/composables/useTemplateFiltering.ts index c181e2f91..f447f230b 100644 --- a/src/composables/useTemplateFiltering.ts +++ b/src/composables/useTemplateFiltering.ts @@ -41,11 +41,11 @@ export function useTemplateFiltering( keys: [ { name: 'name', weight: 0.3 }, { name: 'title', weight: 0.3 }, - { name: 'description', weight: 0.2 }, - { name: 'tags', weight: 0.1 }, - { name: 'models', weight: 0.1 } + { name: 'description', weight: 0.1 }, + { name: 'tags', weight: 0.2 }, + { name: 'models', weight: 0.3 } ], - threshold: 0.4, + threshold: 0.33, includeScore: true, includeMatches: true }