Highlight query in search result in node searchbox (#420)

* min match set to 2

* Highlight query in search result

* nit
This commit is contained in:
Chenlei Hu
2024-08-14 10:28:17 -04:00
committed by GitHub
parent 4eb56a19ba
commit 6993a56c2d
2 changed files with 21 additions and 2 deletions

View File

@@ -111,7 +111,7 @@ export class NodeSearchService {
constructor(data: ComfyNodeDefImpl[]) {
this.nodeFuseSearch = new FuseSearch(data, {
keys: ['name', 'display_name', 'description'],
keys: ['name', 'display_name'],
includeScore: true,
threshold: 0.3,
shouldSort: true,