From 273e39bbd123b783ca5a737941380caedbba9724 Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Thu, 11 Dec 2025 11:47:04 -0800 Subject: [PATCH] feat: improve search alg in templates (#7377) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Improves search alg on templates, especially for some highly searchd terms like "wan" or "3d." image image image image [Context](https://comfy-organization.slack.com/archives/C07G75QB06Q/p1765398450984809) ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7377-feat-improve-search-alg-in-templates-2c66d73d3650812996e5c8be53873e92) by [Unito](https://www.unito.io) --- 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 }